<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SARibbon: SARibbonBar类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="SA-logo.png"/></td>
  <td id="projectalign">
   <div id="projectname">SARibbon<span id="projectnumber">&#160;2.4.2</span>
   </div>
   <div id="projectbrief">SARibbon wiki</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('class_s_a_ribbon_bar.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-types">Public 类型</a> &#124;
<a href="#signals">信号</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pro-slots">Protected 槽</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#properties">属性</a> &#124;
<a href="#friends">友元</a> &#124;
<a href="class_s_a_ribbon_bar-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">SARibbonBar类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>SARibbonBar继承于QMenuBar,在SARibbonMainWindow中直接替换了原来的QMenuBar  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_s_a_ribbon_bar_8h_source.html">SARibbonBar.h</a>&gt;</code></p>
<div class="dynheader">
类 SARibbonBar 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_s_a_ribbon_bar.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_bar_1_1_private_data.html">PrivateData</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:ac2a1554ddb5825d7866968152239b1df" id="r_ac2a1554ddb5825d7866968152239b1df"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac2a1554ddb5825d7866968152239b1df">RibbonStyleFlag</a> { <br />
&#160;&#160;<b>RibbonStyleLoose</b> = 0x0001
, <b>RibbonStyleCompact</b> = 0x0002
, <b>RibbonStyleThreeRow</b> = 0x0010
, <b>RibbonStyleTwoRow</b> = 0x0020
, <br />
&#160;&#160;<a class="el" href="#ac2a1554ddb5825d7866968152239b1dfa314db797c9294386824e61264b26f39d">RibbonStyleLooseThreeRow</a> = RibbonStyleLoose | RibbonStyleThreeRow
, <a class="el" href="#ac2a1554ddb5825d7866968152239b1dfa5633a67b57cac6b7291b99bc5328349b">RibbonStyleCompactThreeRow</a> = RibbonStyleCompact | RibbonStyleThreeRow
, <a class="el" href="#ac2a1554ddb5825d7866968152239b1dfa6feb099a7256d645887d48e9e23fb27f">RibbonStyleLooseTwoRow</a> = RibbonStyleLoose | RibbonStyleTwoRow
, <a class="el" href="#ac2a1554ddb5825d7866968152239b1dfa13c620a5ed961e5255acc3c96e93fe6f">RibbonStyleCompactTwoRow</a> = RibbonStyleCompact | RibbonStyleTwoRow
<br />
 }</td></tr>
<tr class="separator:ac2a1554ddb5825d7866968152239b1df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00f6355e3175ff1eb2d06b607c600488" id="r_a00f6355e3175ff1eb2d06b607c600488"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a00f6355e3175ff1eb2d06b607c600488">RibbonMode</a> { <a class="el" href="#a00f6355e3175ff1eb2d06b607c600488a67aa36c2caad880c5d1e5eb986c12ccf">MinimumRibbonMode</a>
, <a class="el" href="#a00f6355e3175ff1eb2d06b607c600488a0656b0e8249a7fee766d66fd65ea1d16">NormalRibbonMode</a>
 }</td></tr>
<tr class="memdesc:a00f6355e3175ff1eb2d06b607c600488"><td class="mdescLeft">&#160;</td><td class="mdescRight">定义当前ribbon 的状态  <a href="#a00f6355e3175ff1eb2d06b607c600488">更多...</a><br /></td></tr>
<tr class="separator:a00f6355e3175ff1eb2d06b607c600488"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e9f675efba654f20d42ee431e0cb8c1" id="r_a5e9f675efba654f20d42ee431e0cb8c1"><td class="memItemLeft" align="right" valign="top"><a id="a5e9f675efba654f20d42ee431e0cb8c1" name="a5e9f675efba654f20d42ee431e0cb8c1"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>FpCategoryIterate</b> = std::function&lt; bool(<a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a>*) &gt;</td></tr>
<tr class="separator:a5e9f675efba654f20d42ee431e0cb8c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae37eeb121e1afddff238b513a9d9e480" id="r_ae37eeb121e1afddff238b513a9d9e480"><td class="memItemLeft" align="right" valign="top"><a id="ae37eeb121e1afddff238b513a9d9e480" name="ae37eeb121e1afddff238b513a9d9e480"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>FpPannelIterate</b> = SARibbonCategory::FpPannelIterate</td></tr>
<tr class="separator:ae37eeb121e1afddff238b513a9d9e480"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a2b3d64effa794ce6c76ccd9dce448a" id="r_a5a2b3d64effa794ce6c76ccd9dce448a"><td class="memItemLeft" align="right" valign="top"><a id="a5a2b3d64effa794ce6c76ccd9dce448a" name="a5a2b3d64effa794ce6c76ccd9dce448a"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>FpContextCategoryHighlight</b> = std::function&lt; QColor(const QColor&amp;) &gt;</td></tr>
<tr class="memdesc:a5a2b3d64effa794ce6c76ccd9dce448a"><td class="mdescLeft">&#160;</td><td class="mdescRight">这是针对上下文标签的高亮颜色绘制，用户可以设置一个函数指针，来针对上下文标签的高亮颜色进行调整 <br /></td></tr>
<tr class="separator:a5a2b3d64effa794ce6c76ccd9dce448a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="signals" name="signals"></a>
信号</h2></td></tr>
<tr class="memitem:aeffbee6347a079f3afb1d2727b45a057" id="r_aeffbee6347a079f3afb1d2727b45a057"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aeffbee6347a079f3afb1d2727b45a057">applicationButtonClicked</a> ()</td></tr>
<tr class="memdesc:aeffbee6347a079f3afb1d2727b45a057"><td class="mdescLeft">&#160;</td><td class="mdescRight">应用按钮点击响应 - 左上角的按钮，通过关联此信号触发应用按钮点击的效果  <br /></td></tr>
<tr class="separator:aeffbee6347a079f3afb1d2727b45a057"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a09234c0ea31ac766b2be2413ea81b5" id="r_a6a09234c0ea31ac766b2be2413ea81b5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6a09234c0ea31ac766b2be2413ea81b5">currentRibbonTabChanged</a> (int index)</td></tr>
<tr class="memdesc:a6a09234c0ea31ac766b2be2413ea81b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">标签页变化触发的信号  <br /></td></tr>
<tr class="separator:a6a09234c0ea31ac766b2be2413ea81b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52aa893b23e58177a5837d100c82d8b2" id="r_a52aa893b23e58177a5837d100c82d8b2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a52aa893b23e58177a5837d100c82d8b2">ribbonModeChanged</a> (<a class="el" href="#a00f6355e3175ff1eb2d06b607c600488">SARibbonBar::RibbonMode</a> nowState)</td></tr>
<tr class="memdesc:a52aa893b23e58177a5837d100c82d8b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">ribbon的状态发生了变化后触发此信号  <br /></td></tr>
<tr class="separator:a52aa893b23e58177a5837d100c82d8b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a466b9bf5d89406b0170a62763d585e22" id="r_a466b9bf5d89406b0170a62763d585e22"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a466b9bf5d89406b0170a62763d585e22">ribbonStyleChanged</a> (SARibbonBar::RibbonStyles nowStyle)</td></tr>
<tr class="memdesc:a466b9bf5d89406b0170a62763d585e22"><td class="mdescLeft">&#160;</td><td class="mdescRight">ribbon的状态发生了变化后触发此信号  <br /></td></tr>
<tr class="separator:a466b9bf5d89406b0170a62763d585e22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6297323791a6a667aaaf22429ad05021" id="r_a6297323791a6a667aaaf22429ad05021"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6297323791a6a667aaaf22429ad05021">titleBarHeightChanged</a> (int oldHeight, int newHeight)</td></tr>
<tr class="memdesc:a6297323791a6a667aaaf22429ad05021"><td class="mdescLeft">&#160;</td><td class="mdescRight">标题栏高度发生了变化的信号  <br /></td></tr>
<tr class="separator:a6297323791a6a667aaaf22429ad05021"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93c68abf4c6a56255db664f9e0075754" id="r_a93c68abf4c6a56255db664f9e0075754"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a93c68abf4c6a56255db664f9e0075754">actionTriggered</a> (QAction *action)</td></tr>
<tr class="memdesc:a93c68abf4c6a56255db664f9e0075754"><td class="mdescLeft">&#160;</td><td class="mdescRight">参考QToolBar::actionTriggered的信号  <br /></td></tr>
<tr class="separator:a93c68abf4c6a56255db664f9e0075754"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a91f29a50127bc2e18ce7a444e86e799f" id="r_a91f29a50127bc2e18ce7a444e86e799f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a91f29a50127bc2e18ce7a444e86e799f">SARibbonBar</a> (QWidget *parent=nullptr)</td></tr>
<tr class="memdesc:a91f29a50127bc2e18ce7a444e86e799f"><td class="mdescLeft">&#160;</td><td class="mdescRight">SARibbonBar构造函数  <br /></td></tr>
<tr class="separator:a91f29a50127bc2e18ce7a444e86e799f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab329b967ebdc7cb1780fd899b5e07d57" id="r_ab329b967ebdc7cb1780fd899b5e07d57"><td class="memItemLeft" align="right" valign="top">QAbstractButton *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab329b967ebdc7cb1780fd899b5e07d57">applicationButton</a> ()</td></tr>
<tr class="memdesc:ab329b967ebdc7cb1780fd899b5e07d57"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回applicationButton  <br /></td></tr>
<tr class="separator:ab329b967ebdc7cb1780fd899b5e07d57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10627559db4101fccaa3ed3ce10cc042" id="r_a10627559db4101fccaa3ed3ce10cc042"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a10627559db4101fccaa3ed3ce10cc042">setApplicationButton</a> (QAbstractButton *btn)</td></tr>
<tr class="memdesc:a10627559db4101fccaa3ed3ce10cc042"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置applicationButton,如果想隐藏，可以传入nullptr  <br /></td></tr>
<tr class="separator:a10627559db4101fccaa3ed3ce10cc042"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3242c69600f9e91a8ef5e942a3f57a6a" id="r_a3242c69600f9e91a8ef5e942a3f57a6a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_tab_bar.html">SARibbonTabBar</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3242c69600f9e91a8ef5e942a3f57a6a">ribbonTabBar</a> ()</td></tr>
<tr class="memdesc:a3242c69600f9e91a8ef5e942a3f57a6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回tabbar  <br /></td></tr>
<tr class="separator:a3242c69600f9e91a8ef5e942a3f57a6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9adeaabbb6e8dc5d593dab4a90c83e63" id="r_a9adeaabbb6e8dc5d593dab4a90c83e63"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9adeaabbb6e8dc5d593dab4a90c83e63">addCategoryPage</a> (const QString &amp;title)</td></tr>
<tr class="memdesc:a9adeaabbb6e8dc5d593dab4a90c83e63"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加一个标签 如果需要删除，直接delete即可，SARibbonBar会对其进行处理  <br /></td></tr>
<tr class="separator:a9adeaabbb6e8dc5d593dab4a90c83e63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a930972df97357b0073f0da33c98c6d80" id="r_a930972df97357b0073f0da33c98c6d80"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a930972df97357b0073f0da33c98c6d80">addCategoryPage</a> (<a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *category)</td></tr>
<tr class="memdesc:a930972df97357b0073f0da33c98c6d80"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加一个标签  <br /></td></tr>
<tr class="separator:a930972df97357b0073f0da33c98c6d80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc17b6003d5d10213f1e68ad36505d87" id="r_abc17b6003d5d10213f1e68ad36505d87"><td class="memItemLeft" align="right" valign="top">Q_INVOKABLE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abc17b6003d5d10213f1e68ad36505d87">addCategoryPage</a> (QWidget *category)</td></tr>
<tr class="memdesc:abc17b6003d5d10213f1e68ad36505d87"><td class="mdescLeft">&#160;</td><td class="mdescRight">qtdesigner专用  <br /></td></tr>
<tr class="separator:abc17b6003d5d10213f1e68ad36505d87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acab0b287d9c9d71dbdf4c828faf95012" id="r_acab0b287d9c9d71dbdf4c828faf95012"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#acab0b287d9c9d71dbdf4c828faf95012">insertCategoryPage</a> (const QString &amp;title, int index)</td></tr>
<tr class="memdesc:acab0b287d9c9d71dbdf4c828faf95012"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加一个category，category的位置在index，如果当前category数量少于index，将插入到最后  <br /></td></tr>
<tr class="separator:acab0b287d9c9d71dbdf4c828faf95012"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a70feff6263a48d8ea2cad06ea6284e" id="r_a4a70feff6263a48d8ea2cad06ea6284e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4a70feff6263a48d8ea2cad06ea6284e">insertCategoryPage</a> (<a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *category, int index)</td></tr>
<tr class="memdesc:a4a70feff6263a48d8ea2cad06ea6284e"><td class="mdescLeft">&#160;</td><td class="mdescRight">插入一个category  <br /></td></tr>
<tr class="separator:a4a70feff6263a48d8ea2cad06ea6284e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae341612d4118c51e3cef6f3746493937" id="r_ae341612d4118c51e3cef6f3746493937"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae341612d4118c51e3cef6f3746493937">categoryByName</a> (const QString &amp;title) const</td></tr>
<tr class="memdesc:ae341612d4118c51e3cef6f3746493937"><td class="mdescLeft">&#160;</td><td class="mdescRight">通过名字查找Category  <br /></td></tr>
<tr class="separator:ae341612d4118c51e3cef6f3746493937"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ae1298cfdd6d3c8c68260b7a79140fa" id="r_a2ae1298cfdd6d3c8c68260b7a79140fa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2ae1298cfdd6d3c8c68260b7a79140fa">categoryByObjectName</a> (const QString &amp;objname) const</td></tr>
<tr class="memdesc:a2ae1298cfdd6d3c8c68260b7a79140fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">通过ObjectName查找Category  <br /></td></tr>
<tr class="separator:a2ae1298cfdd6d3c8c68260b7a79140fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7bd2c77eaeeaeadd3610cbc68a98d68" id="r_aa7bd2c77eaeeaeadd3610cbc68a98d68"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa7bd2c77eaeeaeadd3610cbc68a98d68">categoryByIndex</a> (int index) const</td></tr>
<tr class="memdesc:aa7bd2c77eaeeaeadd3610cbc68a98d68"><td class="mdescLeft">&#160;</td><td class="mdescRight">通过索引找到category，如果超过索引范围，会返回nullptr  <br /></td></tr>
<tr class="separator:aa7bd2c77eaeeaeadd3610cbc68a98d68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a226989419716735c64cb88c9052ce788" id="r_a226989419716735c64cb88c9052ce788"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a226989419716735c64cb88c9052ce788">hideCategory</a> (<a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *category)</td></tr>
<tr class="memdesc:a226989419716735c64cb88c9052ce788"><td class="mdescLeft">&#160;</td><td class="mdescRight">隐藏category,并不会删除或者取走，只是隐藏  <br /></td></tr>
<tr class="separator:a226989419716735c64cb88c9052ce788"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10ce5d529934fa86686384541a53e6a2" id="r_a10ce5d529934fa86686384541a53e6a2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a10ce5d529934fa86686384541a53e6a2">showCategory</a> (<a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *category)</td></tr>
<tr class="memdesc:a10ce5d529934fa86686384541a53e6a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">显示被隐藏的category  <br /></td></tr>
<tr class="separator:a10ce5d529934fa86686384541a53e6a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f9d8e3202a775f2eac99e3e0350b3c6" id="r_a4f9d8e3202a775f2eac99e3e0350b3c6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4f9d8e3202a775f2eac99e3e0350b3c6">isCategoryVisible</a> (const <a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *c) const</td></tr>
<tr class="memdesc:a4f9d8e3202a775f2eac99e3e0350b3c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断这个category是否在显示状态，也就是tabbar有这个category  <br /></td></tr>
<tr class="separator:a4f9d8e3202a775f2eac99e3e0350b3c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a426197af9ca85c888b3aad2134edffdd" id="r_a426197af9ca85c888b3aad2134edffdd"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a426197af9ca85c888b3aad2134edffdd">categoryIndex</a> (const <a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *c) const</td></tr>
<tr class="memdesc:a426197af9ca85c888b3aad2134edffdd"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取category的索引  <br /></td></tr>
<tr class="separator:a426197af9ca85c888b3aad2134edffdd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5673be309d7d58fc63e9c7ec53fc190" id="r_ac5673be309d7d58fc63e9c7ec53fc190"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac5673be309d7d58fc63e9c7ec53fc190">moveCategory</a> (int from, int to)</td></tr>
<tr class="memdesc:ac5673be309d7d58fc63e9c7ec53fc190"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动一个Category从from index到to index  <br /></td></tr>
<tr class="separator:ac5673be309d7d58fc63e9c7ec53fc190"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5d82bcf470ab6c80b8e6993cd318fc1" id="r_ab5d82bcf470ab6c80b8e6993cd318fc1"><td class="memItemLeft" align="right" valign="top">QList&lt; <a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab5d82bcf470ab6c80b8e6993cd318fc1">categoryPages</a> (bool getAll=true) const</td></tr>
<tr class="memdesc:ab5d82bcf470ab6c80b8e6993cd318fc1"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取当前显示的所有的SARibbonCategory，包含未显示的SARibbonContextCategory的SARibbonCategory也一并返回  <br /></td></tr>
<tr class="separator:ab5d82bcf470ab6c80b8e6993cd318fc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9680c280a9d1dc8cd5b82571c61fd6a5" id="r_a9680c280a9d1dc8cd5b82571c61fd6a5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9680c280a9d1dc8cd5b82571c61fd6a5">removeCategory</a> (<a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *category)</td></tr>
<tr class="memdesc:a9680c280a9d1dc8cd5b82571c61fd6a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">移除SARibbonCategory  <br /></td></tr>
<tr class="separator:a9680c280a9d1dc8cd5b82571c61fd6a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15762caa4a372214196b133eb0b0b0e1" id="r_a15762caa4a372214196b133eb0b0b0e1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_context_category.html">SARibbonContextCategory</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a15762caa4a372214196b133eb0b0b0e1">addContextCategory</a> (const QString &amp;title, const QColor &amp;color=QColor(), const QVariant &amp;id=QVariant())</td></tr>
<tr class="memdesc:a15762caa4a372214196b133eb0b0b0e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加上下文标签  <br /></td></tr>
<tr class="separator:a15762caa4a372214196b133eb0b0b0e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a8cc3a8a74e922ff90d6dd11ba27351" id="r_a3a8cc3a8a74e922ff90d6dd11ba27351"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3a8cc3a8a74e922ff90d6dd11ba27351">addContextCategory</a> (<a class="el" href="class_s_a_ribbon_context_category.html">SARibbonContextCategory</a> *context)</td></tr>
<tr class="memdesc:a3a8cc3a8a74e922ff90d6dd11ba27351"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加上下文标签  <br /></td></tr>
<tr class="separator:a3a8cc3a8a74e922ff90d6dd11ba27351"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d740994d5ca270b0ffa5f3930a3bcc0" id="r_a6d740994d5ca270b0ffa5f3930a3bcc0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6d740994d5ca270b0ffa5f3930a3bcc0">showContextCategory</a> (<a class="el" href="class_s_a_ribbon_context_category.html">SARibbonContextCategory</a> *context)</td></tr>
<tr class="memdesc:a6d740994d5ca270b0ffa5f3930a3bcc0"><td class="mdescLeft">&#160;</td><td class="mdescRight">显示上下文标签  <br /></td></tr>
<tr class="separator:a6d740994d5ca270b0ffa5f3930a3bcc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5944c3522c196641e756ebd1124d6f56" id="r_a5944c3522c196641e756ebd1124d6f56"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5944c3522c196641e756ebd1124d6f56">hideContextCategory</a> (<a class="el" href="class_s_a_ribbon_context_category.html">SARibbonContextCategory</a> *context)</td></tr>
<tr class="memdesc:a5944c3522c196641e756ebd1124d6f56"><td class="mdescLeft">&#160;</td><td class="mdescRight">隐藏上下文标签  <br /></td></tr>
<tr class="separator:a5944c3522c196641e756ebd1124d6f56"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3a45e8bbd414d654229e6363f160ec0" id="r_ae3a45e8bbd414d654229e6363f160ec0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae3a45e8bbd414d654229e6363f160ec0">isContextCategoryVisible</a> (<a class="el" href="class_s_a_ribbon_context_category.html">SARibbonContextCategory</a> *context)</td></tr>
<tr class="memdesc:ae3a45e8bbd414d654229e6363f160ec0"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断上下文是否在显示状态  <br /></td></tr>
<tr class="separator:ae3a45e8bbd414d654229e6363f160ec0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59f12ba15866a6c1ef1f09d84bf28509" id="r_a59f12ba15866a6c1ef1f09d84bf28509"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a59f12ba15866a6c1ef1f09d84bf28509">setContextCategoryVisible</a> (<a class="el" href="class_s_a_ribbon_context_category.html">SARibbonContextCategory</a> *context, bool visible)</td></tr>
<tr class="memdesc:a59f12ba15866a6c1ef1f09d84bf28509"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置上下文标签的显示状态  <br /></td></tr>
<tr class="separator:a59f12ba15866a6c1ef1f09d84bf28509"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaad8d2db83c8438af6ccd3b52f003f21" id="r_aaad8d2db83c8438af6ccd3b52f003f21"><td class="memItemLeft" align="right" valign="top">QList&lt; <a class="el" href="class_s_a_ribbon_context_category.html">SARibbonContextCategory</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aaad8d2db83c8438af6ccd3b52f003f21">contextCategoryList</a> () const</td></tr>
<tr class="memdesc:aaad8d2db83c8438af6ccd3b52f003f21"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取所有的上下文标签  <br /></td></tr>
<tr class="separator:aaad8d2db83c8438af6ccd3b52f003f21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:affbf927bcf86e13c1c012793d8b06995" id="r_affbf927bcf86e13c1c012793d8b06995"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#affbf927bcf86e13c1c012793d8b06995">destroyContextCategory</a> (<a class="el" href="class_s_a_ribbon_context_category.html">SARibbonContextCategory</a> *context)</td></tr>
<tr class="memdesc:affbf927bcf86e13c1c012793d8b06995"><td class="mdescLeft">&#160;</td><td class="mdescRight">销毁上下文标签，上下文标签的SARibbonCategory也会随之销毁  <br /></td></tr>
<tr class="separator:affbf927bcf86e13c1c012793d8b06995"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef9ee2c4da72a1958d2e1be892ca03e9" id="r_aef9ee2c4da72a1958d2e1be892ca03e9"><td class="memItemLeft" align="right" valign="top">QList&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aef9ee2c4da72a1958d2e1be892ca03e9">currentVisibleContextCategoryTabIndexs</a> () const</td></tr>
<tr class="memdesc:aef9ee2c4da72a1958d2e1be892ca03e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取当前可见的上下文标签的tab索引  <br /></td></tr>
<tr class="separator:aef9ee2c4da72a1958d2e1be892ca03e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a420d990077e59300a5e3fb84faed146e" id="r_a420d990077e59300a5e3fb84faed146e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a420d990077e59300a5e3fb84faed146e">setMinimumMode</a> (bool isHide)</td></tr>
<tr class="memdesc:a420d990077e59300a5e3fb84faed146e"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置为最小/正常模式  <br /></td></tr>
<tr class="separator:a420d990077e59300a5e3fb84faed146e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12bdfd59eec2533895af16819635c227" id="r_a12bdfd59eec2533895af16819635c227"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a12bdfd59eec2533895af16819635c227">isMinimumMode</a> () const</td></tr>
<tr class="memdesc:a12bdfd59eec2533895af16819635c227"><td class="mdescLeft">&#160;</td><td class="mdescRight">当前ribbon是否是隐藏模式  <br /></td></tr>
<tr class="separator:a12bdfd59eec2533895af16819635c227"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd6684dfa0fc8662f4985ffcd32acf9e" id="r_abd6684dfa0fc8662f4985ffcd32acf9e"><td class="memItemLeft" align="right" valign="top"><a id="abd6684dfa0fc8662f4985ffcd32acf9e" name="abd6684dfa0fc8662f4985ffcd32acf9e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>showMinimumModeButton</b> (bool isShow=true)</td></tr>
<tr class="memdesc:abd6684dfa0fc8662f4985ffcd32acf9e"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置显示隐藏ribbon按钮 <br /></td></tr>
<tr class="separator:abd6684dfa0fc8662f4985ffcd32acf9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a093eae30ea5cd7d38bb755324e4db2d3" id="r_a093eae30ea5cd7d38bb755324e4db2d3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a093eae30ea5cd7d38bb755324e4db2d3">haveShowMinimumModeButton</a> () const</td></tr>
<tr class="memdesc:a093eae30ea5cd7d38bb755324e4db2d3"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否显示隐藏ribbon按钮  <br /></td></tr>
<tr class="separator:a093eae30ea5cd7d38bb755324e4db2d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13a4fd4da7e4cb6d7e69dedcf6e951d2" id="r_a13a4fd4da7e4cb6d7e69dedcf6e951d2"><td class="memItemLeft" align="right" valign="top">QAction *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a13a4fd4da7e4cb6d7e69dedcf6e951d2">minimumModeAction</a> () const</td></tr>
<tr class="memdesc:a13a4fd4da7e4cb6d7e69dedcf6e951d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">隐藏ribbon对应的action  <br /></td></tr>
<tr class="separator:a13a4fd4da7e4cb6d7e69dedcf6e951d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc71b49063307bea9d686f5ebc64aa4c" id="r_acc71b49063307bea9d686f5ebc64aa4c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#acc71b49063307bea9d686f5ebc64aa4c">isEnableTabDoubleClickToMinimumMode</a> () const</td></tr>
<tr class="memdesc:acc71b49063307bea9d686f5ebc64aa4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否允许tab双击后进入ribbon的最小模式  <br /></td></tr>
<tr class="separator:acc71b49063307bea9d686f5ebc64aa4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44480f8ba41f3c9deb0e2c4188aba822" id="r_a44480f8ba41f3c9deb0e2c4188aba822"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a44480f8ba41f3c9deb0e2c4188aba822">setTabDoubleClickToMinimumMode</a> (bool on=true) const</td></tr>
<tr class="memdesc:a44480f8ba41f3c9deb0e2c4188aba822"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置是否允许tab双击后，ribbon进入最小化模式，此属性默认开启  <br /></td></tr>
<tr class="separator:a44480f8ba41f3c9deb0e2c4188aba822"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a9a072cc7f9c20cae6372fbc34747c5" id="r_a7a9a072cc7f9c20cae6372fbc34747c5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="#a00f6355e3175ff1eb2d06b607c600488">RibbonMode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7a9a072cc7f9c20cae6372fbc34747c5">currentRibbonState</a> () const</td></tr>
<tr class="memdesc:a7a9a072cc7f9c20cae6372fbc34747c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">当前ribbon的状态（正常|最小化）  <br /></td></tr>
<tr class="separator:a7a9a072cc7f9c20cae6372fbc34747c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49d40554f4b24aa32012634b5c2ff34f" id="r_a49d40554f4b24aa32012634b5c2ff34f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a49d40554f4b24aa32012634b5c2ff34f">tabBarHeight</a> () const</td></tr>
<tr class="memdesc:a49d40554f4b24aa32012634b5c2ff34f"><td class="mdescLeft">&#160;</td><td class="mdescRight">tabBar的高度  <br /></td></tr>
<tr class="separator:a49d40554f4b24aa32012634b5c2ff34f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfec4465b7b156c964699f8b6eb4753f" id="r_acfec4465b7b156c964699f8b6eb4753f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#acfec4465b7b156c964699f8b6eb4753f">setTabBarHeight</a> (int h, bool resizeByNow=true)</td></tr>
<tr class="memdesc:acfec4465b7b156c964699f8b6eb4753f"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置tabbar的高度  <br /></td></tr>
<tr class="separator:acfec4465b7b156c964699f8b6eb4753f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16731d0ea5087c91bb0cdfc4818a29f2" id="r_a16731d0ea5087c91bb0cdfc4818a29f2"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a16731d0ea5087c91bb0cdfc4818a29f2">titleBarHeight</a> () const</td></tr>
<tr class="memdesc:a16731d0ea5087c91bb0cdfc4818a29f2"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回标题栏高度  <br /></td></tr>
<tr class="separator:a16731d0ea5087c91bb0cdfc4818a29f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af49e29e2122d4b003098a4c0bf6e00af" id="r_af49e29e2122d4b003098a4c0bf6e00af"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af49e29e2122d4b003098a4c0bf6e00af">setTitleBarHeight</a> (int h, bool resizeByNow=true)</td></tr>
<tr class="memdesc:af49e29e2122d4b003098a4c0bf6e00af"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置标题栏的高度  <br /></td></tr>
<tr class="separator:af49e29e2122d4b003098a4c0bf6e00af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a434f2bcdde7734bf146b4d032da3cf0d" id="r_a434f2bcdde7734bf146b4d032da3cf0d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a434f2bcdde7734bf146b4d032da3cf0d">categoryHeight</a> () const</td></tr>
<tr class="memdesc:a434f2bcdde7734bf146b4d032da3cf0d"><td class="mdescLeft">&#160;</td><td class="mdescRight">category的高度  <br /></td></tr>
<tr class="separator:a434f2bcdde7734bf146b4d032da3cf0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acba7a11ea512c8b00ece9c996273016c" id="r_acba7a11ea512c8b00ece9c996273016c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#acba7a11ea512c8b00ece9c996273016c">setCategoryHeight</a> (int h, bool resizeByNow=true)</td></tr>
<tr class="memdesc:acba7a11ea512c8b00ece9c996273016c"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置category的高度  <br /></td></tr>
<tr class="separator:acba7a11ea512c8b00ece9c996273016c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5fc4a92322e212ef23676b0aa3925f0c" id="r_a5fc4a92322e212ef23676b0aa3925f0c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5fc4a92322e212ef23676b0aa3925f0c">normalModeMainBarHeight</a> () const</td></tr>
<tr class="memdesc:a5fc4a92322e212ef23676b0aa3925f0c"><td class="mdescLeft">&#160;</td><td class="mdescRight">正常模式下的高度  <br /></td></tr>
<tr class="separator:a5fc4a92322e212ef23676b0aa3925f0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a537177c0c59eafe43cfa65ca984bf9f7" id="r_a537177c0c59eafe43cfa65ca984bf9f7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a537177c0c59eafe43cfa65ca984bf9f7">minimumModeMainBarHeight</a> () const</td></tr>
<tr class="memdesc:a537177c0c59eafe43cfa65ca984bf9f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">最小模式下的高度  <br /></td></tr>
<tr class="separator:a537177c0c59eafe43cfa65ca984bf9f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0dcb1c6f3278cf211142d071f4487110" id="r_a0dcb1c6f3278cf211142d071f4487110"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_button_group_widget.html">SARibbonButtonGroupWidget</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0dcb1c6f3278cf211142d071f4487110">activeRightButtonGroup</a> ()</td></tr>
<tr class="memdesc:a0dcb1c6f3278cf211142d071f4487110"><td class="mdescLeft">&#160;</td><td class="mdescRight">激活tabbar右边的按钮群  <br /></td></tr>
<tr class="separator:a0dcb1c6f3278cf211142d071f4487110"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0260b06ce426ed7b006f9f572901688" id="r_ac0260b06ce426ed7b006f9f572901688"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_button_group_widget.html">SARibbonButtonGroupWidget</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac0260b06ce426ed7b006f9f572901688">rightButtonGroup</a> ()</td></tr>
<tr class="memdesc:ac0260b06ce426ed7b006f9f572901688"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回右边的按钮群指针  <br /></td></tr>
<tr class="separator:ac0260b06ce426ed7b006f9f572901688"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ec8a480b1f06de48da555eceb4711d8" id="r_a1ec8a480b1f06de48da555eceb4711d8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_quick_access_bar.html">SARibbonQuickAccessBar</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1ec8a480b1f06de48da555eceb4711d8">activeQuickAccessBar</a> ()</td></tr>
<tr class="memdesc:a1ec8a480b1f06de48da555eceb4711d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">激活QuickAccessBar  <br /></td></tr>
<tr class="separator:a1ec8a480b1f06de48da555eceb4711d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a465b20f0f204f54bb54ce98404fe3faf" id="r_a465b20f0f204f54bb54ce98404fe3faf"><td class="memItemLeft" align="right" valign="top"><a id="a465b20f0f204f54bb54ce98404fe3faf" name="a465b20f0f204f54bb54ce98404fe3faf"></a>
<a class="el" href="class_s_a_ribbon_quick_access_bar.html">SARibbonQuickAccessBar</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>quickAccessBar</b> ()</td></tr>
<tr class="separator:a465b20f0f204f54bb54ce98404fe3faf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ee2ffcde55433d35705980030b0a38d" id="r_a7ee2ffcde55433d35705980030b0a38d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7ee2ffcde55433d35705980030b0a38d">setRibbonStyle</a> (RibbonStyles v)</td></tr>
<tr class="memdesc:a7ee2ffcde55433d35705980030b0a38d"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置ribbonbar的风格，此函数会重新设置所有元素，包括button的布局方式， 尤其是从三行变到两行的过程，重设的内容较多  <br /></td></tr>
<tr class="separator:a7ee2ffcde55433d35705980030b0a38d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a464f0928b73a1cf70c9edb4611b61c50" id="r_a464f0928b73a1cf70c9edb4611b61c50"><td class="memItemLeft" align="right" valign="top">RibbonStyles&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a464f0928b73a1cf70c9edb4611b61c50">currentRibbonStyle</a> () const</td></tr>
<tr class="memdesc:a464f0928b73a1cf70c9edb4611b61c50"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回当前ribbon的风格  <br /></td></tr>
<tr class="separator:a464f0928b73a1cf70c9edb4611b61c50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a351ed0b6416dabb3f074d00005ff972b" id="r_a351ed0b6416dabb3f074d00005ff972b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a351ed0b6416dabb3f074d00005ff972b">setCurrentIndex</a> (int index)</td></tr>
<tr class="memdesc:a351ed0b6416dabb3f074d00005ff972b"><td class="mdescLeft">&#160;</td><td class="mdescRight">切换到对应标签  <br /></td></tr>
<tr class="separator:a351ed0b6416dabb3f074d00005ff972b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac6da25e07b337cd94ffd5523575109fa" id="r_ac6da25e07b337cd94ffd5523575109fa"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac6da25e07b337cd94ffd5523575109fa">currentIndex</a> ()</td></tr>
<tr class="memdesc:ac6da25e07b337cd94ffd5523575109fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回当前的tab索引  <br /></td></tr>
<tr class="separator:ac6da25e07b337cd94ffd5523575109fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49694b13270f73e48a336309b2ac1da7" id="r_a49694b13270f73e48a336309b2ac1da7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a49694b13270f73e48a336309b2ac1da7">raiseCategory</a> (<a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *category)</td></tr>
<tr class="memdesc:a49694b13270f73e48a336309b2ac1da7"><td class="mdescLeft">&#160;</td><td class="mdescRight">确保标签显示出来，tab并切换到对应页  <br /></td></tr>
<tr class="separator:a49694b13270f73e48a336309b2ac1da7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a813d1e3c3099750cceadd5954cb0253c" id="r_a813d1e3c3099750cceadd5954cb0253c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a813d1e3c3099750cceadd5954cb0253c">isTwoRowStyle</a> () const</td></tr>
<tr class="memdesc:a813d1e3c3099750cceadd5954cb0253c"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断当前的样式是否为2行  <br /></td></tr>
<tr class="separator:a813d1e3c3099750cceadd5954cb0253c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2890e9e19f3327d22ce65dc39feca04c" id="r_a2890e9e19f3327d22ce65dc39feca04c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2890e9e19f3327d22ce65dc39feca04c">isThreeRowStyle</a> () const</td></tr>
<tr class="memdesc:a2890e9e19f3327d22ce65dc39feca04c"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断当前的样式是否为3行  <br /></td></tr>
<tr class="separator:a2890e9e19f3327d22ce65dc39feca04c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb16adc68b6e6a70b0d53574c2f9e01f" id="r_abb16adc68b6e6a70b0d53574c2f9e01f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abb16adc68b6e6a70b0d53574c2f9e01f">isLooseStyle</a> () const</td></tr>
<tr class="memdesc:abb16adc68b6e6a70b0d53574c2f9e01f"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断当前的样式是否为宽松样式  <br /></td></tr>
<tr class="separator:abb16adc68b6e6a70b0d53574c2f9e01f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a342cc583e4633a3325ae254860153550" id="r_a342cc583e4633a3325ae254860153550"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a342cc583e4633a3325ae254860153550">isCompactStyle</a> () const</td></tr>
<tr class="memdesc:a342cc583e4633a3325ae254860153550"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断当前的样式是否为紧凑样式  <br /></td></tr>
<tr class="separator:a342cc583e4633a3325ae254860153550"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa630b6b418d2fa55533aa3a4cb700df2" id="r_aa630b6b418d2fa55533aa3a4cb700df2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa630b6b418d2fa55533aa3a4cb700df2">updateRibbonGeometry</a> ()</td></tr>
<tr class="memdesc:aa630b6b418d2fa55533aa3a4cb700df2"><td class="mdescLeft">&#160;</td><td class="mdescRight">更新ribbon的布局数据，此函数适用于一些关键性尺寸变化，换起ribbon下面元素的布局  <br /></td></tr>
<tr class="separator:aa630b6b418d2fa55533aa3a4cb700df2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0e6669eed7d4c8f4b5f9597680e7496" id="r_ad0e6669eed7d4c8f4b5f9597680e7496"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_pannel.html#a9da35ca039ab4045209d5614e4566219">SARibbonPannel::PannelLayoutMode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad0e6669eed7d4c8f4b5f9597680e7496">pannelLayoutMode</a> () const</td></tr>
<tr class="memdesc:ad0e6669eed7d4c8f4b5f9597680e7496"><td class="mdescLeft">&#160;</td><td class="mdescRight">SARibbonPannel的布局模式  <br /></td></tr>
<tr class="separator:ad0e6669eed7d4c8f4b5f9597680e7496"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97b760ebc940e30dbf4aad36c579db57" id="r_a97b760ebc940e30dbf4aad36c579db57"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a97b760ebc940e30dbf4aad36c579db57">setPannelLayoutMode</a> (<a class="el" href="class_s_a_ribbon_pannel.html#a9da35ca039ab4045209d5614e4566219">SARibbonPannel::PannelLayoutMode</a> m)</td></tr>
<tr class="memdesc:a97b760ebc940e30dbf4aad36c579db57"><td class="mdescLeft">&#160;</td><td class="mdescRight">SARibbonPannel的布局模式设置  <br /></td></tr>
<tr class="separator:a97b760ebc940e30dbf4aad36c579db57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a07ec5895a7207530beb47dcb129b34" id="r_a5a07ec5895a7207530beb47dcb129b34"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5a07ec5895a7207530beb47dcb129b34">setTabOnTitle</a> (bool on)</td></tr>
<tr class="memdesc:a5a07ec5895a7207530beb47dcb129b34"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置tab在title上面，这样可以省略title区域  <br /></td></tr>
<tr class="separator:a5a07ec5895a7207530beb47dcb129b34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59655ca60eb9fd9654d082a7b8c4505f" id="r_a59655ca60eb9fd9654d082a7b8c4505f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a59655ca60eb9fd9654d082a7b8c4505f">isTabOnTitle</a> () const</td></tr>
<tr class="memdesc:a59655ca60eb9fd9654d082a7b8c4505f"><td class="mdescLeft">&#160;</td><td class="mdescRight">tab是否在title上面  <br /></td></tr>
<tr class="separator:a59655ca60eb9fd9654d082a7b8c4505f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15cc7f035e2a12a2e56265c4d05933a0" id="r_a15cc7f035e2a12a2e56265c4d05933a0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a15cc7f035e2a12a2e56265c4d05933a0">setTabBarBaseLineColor</a> (const QColor &amp;clr)</td></tr>
<tr class="memdesc:a15cc7f035e2a12a2e56265c4d05933a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">tabbar 底部会绘制一条线条，此接口定义线条颜色  <br /></td></tr>
<tr class="separator:a15cc7f035e2a12a2e56265c4d05933a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab390ef8b23d825b6667bce5a9e481696" id="r_ab390ef8b23d825b6667bce5a9e481696"><td class="memItemLeft" align="right" valign="top">QColor&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab390ef8b23d825b6667bce5a9e481696">tabBarBaseLineColor</a> () const</td></tr>
<tr class="memdesc:ab390ef8b23d825b6667bce5a9e481696"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取tabbar底部基线颜色  <br /></td></tr>
<tr class="separator:ab390ef8b23d825b6667bce5a9e481696"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff6a358630d75bddfea9780fa4b99c69" id="r_aff6a358630d75bddfea9780fa4b99c69"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aff6a358630d75bddfea9780fa4b99c69">setWindowTitleTextColor</a> (const QColor &amp;clr)</td></tr>
<tr class="memdesc:aff6a358630d75bddfea9780fa4b99c69"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置标题的文字颜色  <br /></td></tr>
<tr class="separator:aff6a358630d75bddfea9780fa4b99c69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a402e474bf5dbf124d9c02002aaedf4e0" id="r_a402e474bf5dbf124d9c02002aaedf4e0"><td class="memItemLeft" align="right" valign="top">QColor&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a402e474bf5dbf124d9c02002aaedf4e0">windowTitleTextColor</a> () const</td></tr>
<tr class="memdesc:a402e474bf5dbf124d9c02002aaedf4e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取标题的文字颜色  <br /></td></tr>
<tr class="separator:a402e474bf5dbf124d9c02002aaedf4e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a1347a9cf512452789df90e0dc636f5" id="r_a7a1347a9cf512452789df90e0dc636f5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7a1347a9cf512452789df90e0dc636f5">setTitleVisible</a> (bool on=false)</td></tr>
<tr class="memdesc:a7a1347a9cf512452789df90e0dc636f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置是否显示标题  <br /></td></tr>
<tr class="separator:a7a1347a9cf512452789df90e0dc636f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5587b5b13b3c17b78e9ebc8005ed288c" id="r_a5587b5b13b3c17b78e9ebc8005ed288c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5587b5b13b3c17b78e9ebc8005ed288c">isTitleVisible</a> () const</td></tr>
<tr class="memdesc:a5587b5b13b3c17b78e9ebc8005ed288c"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断标题是否显示  <br /></td></tr>
<tr class="separator:a5587b5b13b3c17b78e9ebc8005ed288c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69f583da37f09ae7368bf7fa6e42ff67" id="r_a69f583da37f09ae7368bf7fa6e42ff67"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a69f583da37f09ae7368bf7fa6e42ff67">setWindowTitleBackgroundBrush</a> (const QBrush &amp;bk)</td></tr>
<tr class="memdesc:a69f583da37f09ae7368bf7fa6e42ff67"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置标题栏的背景颜色  <br /></td></tr>
<tr class="separator:a69f583da37f09ae7368bf7fa6e42ff67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5fe924744f7d21c6aaadc45e8171035a" id="r_a5fe924744f7d21c6aaadc45e8171035a"><td class="memItemLeft" align="right" valign="top">QBrush&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5fe924744f7d21c6aaadc45e8171035a">windowTitleBackgroundBrush</a> () const</td></tr>
<tr class="memdesc:a5fe924744f7d21c6aaadc45e8171035a"><td class="mdescLeft">&#160;</td><td class="mdescRight">标题栏的背景颜色  <br /></td></tr>
<tr class="separator:a5fe924744f7d21c6aaadc45e8171035a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03e2c9031839b8310ddc206ded48e381" id="r_a03e2c9031839b8310ddc206ded48e381"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a03e2c9031839b8310ddc206ded48e381">setWindowTitleAligment</a> (Qt::Alignment al)</td></tr>
<tr class="memdesc:a03e2c9031839b8310ddc206ded48e381"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置标题的对齐方式  <br /></td></tr>
<tr class="separator:a03e2c9031839b8310ddc206ded48e381"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56df3f474fd594cd61f0805cceae89eb" id="r_a56df3f474fd594cd61f0805cceae89eb"><td class="memItemLeft" align="right" valign="top">Qt::Alignment&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a56df3f474fd594cd61f0805cceae89eb">windowTitleAligment</a> () const</td></tr>
<tr class="memdesc:a56df3f474fd594cd61f0805cceae89eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取标题的对齐方式  <br /></td></tr>
<tr class="separator:a56df3f474fd594cd61f0805cceae89eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e8173f470ba8b88ba0b20cf1bf65d54" id="r_a9e8173f470ba8b88ba0b20cf1bf65d54"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9e8173f470ba8b88ba0b20cf1bf65d54">setEnableWordWrap</a> (bool on)</td></tr>
<tr class="memdesc:a9e8173f470ba8b88ba0b20cf1bf65d54"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置ribbonbar的按钮文字允许换行  <br /></td></tr>
<tr class="separator:a9e8173f470ba8b88ba0b20cf1bf65d54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03fd5682231e8c9fbc7fe2b56a7dfdbb" id="r_a03fd5682231e8c9fbc7fe2b56a7dfdbb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a03fd5682231e8c9fbc7fe2b56a7dfdbb">isEnableWordWrap</a> () const</td></tr>
<tr class="memdesc:a03fd5682231e8c9fbc7fe2b56a7dfdbb"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断是否允许换行  <br /></td></tr>
<tr class="separator:a03fd5682231e8c9fbc7fe2b56a7dfdbb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f03f6728f61bd557613fff3593333d8" id="r_a0f03f6728f61bd557613fff3593333d8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0f03f6728f61bd557613fff3593333d8">setButtonTextEllipsisAspectFactor</a> (qreal fac=1.4)</td></tr>
<tr class="memdesc:a0f03f6728f61bd557613fff3593333d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">文本宽度估算时的宽度比高度系数  <br /></td></tr>
<tr class="separator:a0f03f6728f61bd557613fff3593333d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e5ea468f360e032091e2c9e8b9d659d" id="r_a4e5ea468f360e032091e2c9e8b9d659d"><td class="memItemLeft" align="right" valign="top">qreal&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4e5ea468f360e032091e2c9e8b9d659d">buttonTextEllipsisAspectFactor</a> () const</td></tr>
<tr class="memdesc:a4e5ea468f360e032091e2c9e8b9d659d"><td class="mdescLeft">&#160;</td><td class="mdescRight">文本宽度估算时的宽度比高度系数  <br /></td></tr>
<tr class="separator:a4e5ea468f360e032091e2c9e8b9d659d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d9e057601348de810cf9ce4439b9641" id="r_a2d9e057601348de810cf9ce4439b9641"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2d9e057601348de810cf9ce4439b9641">pannelTitleHeight</a> () const</td></tr>
<tr class="memdesc:a2d9e057601348de810cf9ce4439b9641"><td class="mdescLeft">&#160;</td><td class="mdescRight">pannel标题栏的高度  <br /></td></tr>
<tr class="separator:a2d9e057601348de810cf9ce4439b9641"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ad24d5ae10d03680670d431b2d1c115" id="r_a9ad24d5ae10d03680670d431b2d1c115"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9ad24d5ae10d03680670d431b2d1c115">setPannelTitleHeight</a> (int h)</td></tr>
<tr class="memdesc:a9ad24d5ae10d03680670d431b2d1c115"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置pannel的高度  <br /></td></tr>
<tr class="separator:a9ad24d5ae10d03680670d431b2d1c115"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b15f52eacd249b5cb70fd38ee1fa15c" id="r_a6b15f52eacd249b5cb70fd38ee1fa15c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6b15f52eacd249b5cb70fd38ee1fa15c">isEnableShowPannelTitle</a> () const</td></tr>
<tr class="memdesc:a6b15f52eacd249b5cb70fd38ee1fa15c"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否pannel显示标题栏  <br /></td></tr>
<tr class="separator:a6b15f52eacd249b5cb70fd38ee1fa15c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3e5c4fe36bd532cc800cd1fee2a3795" id="r_ac3e5c4fe36bd532cc800cd1fee2a3795"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac3e5c4fe36bd532cc800cd1fee2a3795">setEnableShowPannelTitle</a> (bool on)</td></tr>
<tr class="memdesc:ac3e5c4fe36bd532cc800cd1fee2a3795"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置显示pannel标题  <br /></td></tr>
<tr class="separator:ac3e5c4fe36bd532cc800cd1fee2a3795"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad41375cc92b0cbda7030174156c870e3" id="r_ad41375cc92b0cbda7030174156c870e3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad41375cc92b0cbda7030174156c870e3">setPannelSpacing</a> (int n)</td></tr>
<tr class="memdesc:ad41375cc92b0cbda7030174156c870e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置pannel的spacing  <br /></td></tr>
<tr class="separator:ad41375cc92b0cbda7030174156c870e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b738f6c7f04ec232650ac29c779e555" id="r_a6b738f6c7f04ec232650ac29c779e555"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6b738f6c7f04ec232650ac29c779e555">pannelSpacing</a> () const</td></tr>
<tr class="memdesc:a6b738f6c7f04ec232650ac29c779e555"><td class="mdescLeft">&#160;</td><td class="mdescRight">pannel的spacing  <br /></td></tr>
<tr class="separator:a6b738f6c7f04ec232650ac29c779e555"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b21025cd623c753d41998f61310b34d" id="r_a5b21025cd623c753d41998f61310b34d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5b21025cd623c753d41998f61310b34d">setPannelToolButtonIconSize</a> (const QSize &amp;s)</td></tr>
<tr class="memdesc:a5b21025cd623c753d41998f61310b34d"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置pannel按钮的icon尺寸，large action不受此尺寸影响  <br /></td></tr>
<tr class="separator:a5b21025cd623c753d41998f61310b34d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aceb7bc8a2bb58abe564a9eccf9e6e9a1" id="r_aceb7bc8a2bb58abe564a9eccf9e6e9a1"><td class="memItemLeft" align="right" valign="top">QSize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aceb7bc8a2bb58abe564a9eccf9e6e9a1">pannelToolButtonIconSize</a> () const</td></tr>
<tr class="memdesc:aceb7bc8a2bb58abe564a9eccf9e6e9a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">pannel按钮的icon尺寸，large action不受此尺寸影响  <br /></td></tr>
<tr class="separator:aceb7bc8a2bb58abe564a9eccf9e6e9a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41519b6f92b8d0844f55411f11c11203" id="r_a41519b6f92b8d0844f55411f11c11203"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_stacked_widget.html">SARibbonStackedWidget</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a41519b6f92b8d0844f55411f11c11203">ribbonStackedWidget</a> ()</td></tr>
<tr class="memdesc:a41519b6f92b8d0844f55411f11c11203"><td class="mdescLeft">&#160;</td><td class="mdescRight">ribbonbar内部的StackedWidget 所有的category都放置在StackedWidget中  <br /></td></tr>
<tr class="separator:a41519b6f92b8d0844f55411f11c11203"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa503b9cbf19f6673192c943539a5509f" id="r_aa503b9cbf19f6673192c943539a5509f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa503b9cbf19f6673192c943539a5509f">setContextCategoryColorList</a> (const QList&lt; QColor &gt; &amp;cls)</td></tr>
<tr class="memdesc:aa503b9cbf19f6673192c943539a5509f"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置上下文标签的颜色列表  <br /></td></tr>
<tr class="separator:aa503b9cbf19f6673192c943539a5509f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d731878f8514775a255492e7415a945" id="r_a0d731878f8514775a255492e7415a945"><td class="memItemLeft" align="right" valign="top">QList&lt; QColor &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0d731878f8514775a255492e7415a945">contextCategoryColorList</a> () const</td></tr>
<tr class="memdesc:a0d731878f8514775a255492e7415a945"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取上下文标签的颜色列表  <br /></td></tr>
<tr class="separator:a0d731878f8514775a255492e7415a945"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2374a24595e2f193d46df986197d7847" id="r_a2374a24595e2f193d46df986197d7847"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2374a24595e2f193d46df986197d7847">setContextCategoryTitleTextColor</a> (const QColor &amp;clr)</td></tr>
<tr class="memdesc:a2374a24595e2f193d46df986197d7847"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置contextCategory 标题的颜色  <br /></td></tr>
<tr class="separator:a2374a24595e2f193d46df986197d7847"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8844aa945cc66c1256b05f0e7b65ce93" id="r_a8844aa945cc66c1256b05f0e7b65ce93"><td class="memItemLeft" align="right" valign="top">QColor&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8844aa945cc66c1256b05f0e7b65ce93">contextCategoryTitleTextColor</a> () const</td></tr>
<tr class="memdesc:a8844aa945cc66c1256b05f0e7b65ce93"><td class="mdescLeft">&#160;</td><td class="mdescRight">contextCategory 标题的颜色  <br /></td></tr>
<tr class="separator:a8844aa945cc66c1256b05f0e7b65ce93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83a70e2a6f0bdd81370b2aa761888deb" id="r_a83a70e2a6f0bdd81370b2aa761888deb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a83a70e2a6f0bdd81370b2aa761888deb">setContextCategoryColorHighLight</a> (<a class="el" href="#a5a2b3d64effa794ce6c76ccd9dce448a">FpContextCategoryHighlight</a> fp)</td></tr>
<tr class="memdesc:a83a70e2a6f0bdd81370b2aa761888deb"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置一个函数指针，函数指针输入上下文标签设定的颜色，输出一个高亮颜色，高亮颜色用于绘制上下文标签的高亮部位，例如最顶部的横线  <br /></td></tr>
<tr class="separator:a83a70e2a6f0bdd81370b2aa761888deb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2319dede5155863bb2f89cdfc12c2249" id="r_a2319dede5155863bb2f89cdfc12c2249"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2319dede5155863bb2f89cdfc12c2249">setRibbonAlignment</a> (SARibbonAlignment al)</td></tr>
<tr class="memdesc:a2319dede5155863bb2f89cdfc12c2249"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置ribbon的对齐方式  <br /></td></tr>
<tr class="separator:a2319dede5155863bb2f89cdfc12c2249"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37282adaada2ff1ca6a8ef0ba7e9efe8" id="r_a37282adaada2ff1ca6a8ef0ba7e9efe8"><td class="memItemLeft" align="right" valign="top">SARibbonAlignment&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a37282adaada2ff1ca6a8ef0ba7e9efe8">ribbonAlignment</a> () const</td></tr>
<tr class="memdesc:a37282adaada2ff1ca6a8ef0ba7e9efe8"><td class="mdescLeft">&#160;</td><td class="mdescRight">ribbon的对齐方式  <br /></td></tr>
<tr class="separator:a37282adaada2ff1ca6a8ef0ba7e9efe8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab3bcd17e29aaa1d92f2e231d5f8d187" id="r_aab3bcd17e29aaa1d92f2e231d5f8d187"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aab3bcd17e29aaa1d92f2e231d5f8d187">iterateCategory</a> (FpCategoryIterate fp) const</td></tr>
<tr class="memdesc:aab3bcd17e29aaa1d92f2e231d5f8d187"><td class="mdescLeft">&#160;</td><td class="mdescRight">此函数会遍历SARibbonBar下的所有Category，执行函数指针bool(SARibbonCategory*)  <br /></td></tr>
<tr class="separator:aab3bcd17e29aaa1d92f2e231d5f8d187"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b38b8ad37b67cf0d9febebaea643935" id="r_a9b38b8ad37b67cf0d9febebaea643935"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9b38b8ad37b67cf0d9febebaea643935">iteratePannel</a> (FpPannelIterate fp) const</td></tr>
<tr class="memdesc:a9b38b8ad37b67cf0d9febebaea643935"><td class="mdescLeft">&#160;</td><td class="mdescRight">此函数会遍历SARibbonBar下的所有Category,并迭代所有的pannel，执行函数指针bool(SARibbonPannel*)  <br /></td></tr>
<tr class="separator:a9b38b8ad37b67cf0d9febebaea643935"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3bc119ce5cc978669d497cda3785407b" id="r_a3bc119ce5cc978669d497cda3785407b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3bc119ce5cc978669d497cda3785407b">setCornerWidgetVisible</a> (bool on, Qt::Corner c=Qt::TopLeftCorner)</td></tr>
<tr class="memdesc:a3bc119ce5cc978669d497cda3785407b"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置边角widget可见性，对于mdi窗口，会出现TopLeftCorner和TopRightCorner两个corner widget  <br /></td></tr>
<tr class="separator:a3bc119ce5cc978669d497cda3785407b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69be16e6d73306d32c64c47e9dde64c0" id="r_a69be16e6d73306d32c64c47e9dde64c0"><td class="memItemLeft" align="right" valign="top">QList&lt; QAction * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a69be16e6d73306d32c64c47e9dde64c0">allActions</a> () const</td></tr>
<tr class="memdesc:a69be16e6d73306d32c64c47e9dde64c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">此函数会遍历所有pannel，并获取它下面的action  <br /></td></tr>
<tr class="separator:a69be16e6d73306d32c64c47e9dde64c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66aaa23c61dbdcda9ec794ca9ae16c19" id="r_a66aaa23c61dbdcda9ec794ca9ae16c19"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a66aaa23c61dbdcda9ec794ca9ae16c19">isUseRibbonFrame</a> () const</td></tr>
<tr class="memdesc:a66aaa23c61dbdcda9ec794ca9ae16c19"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断当前是否使用的是无边框，而不是native边框  <br /></td></tr>
<tr class="separator:a66aaa23c61dbdcda9ec794ca9ae16c19"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:af9bcdf8b3eceb1ede56d5f7554b616fd" id="r_af9bcdf8b3eceb1ede56d5f7554b616fd"><td class="memItemLeft" align="right" valign="top"><a id="af9bcdf8b3eceb1ede56d5f7554b616fd" name="af9bcdf8b3eceb1ede56d5f7554b616fd"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>isTwoRowStyle</b> (RibbonStyles s)</td></tr>
<tr class="separator:af9bcdf8b3eceb1ede56d5f7554b616fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4c3009c09e6c2d2631122168bbb40fd" id="r_ae4c3009c09e6c2d2631122168bbb40fd"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae4c3009c09e6c2d2631122168bbb40fd">isThreeRowStyle</a> (RibbonStyles s)</td></tr>
<tr class="memdesc:ae4c3009c09e6c2d2631122168bbb40fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断样式是否为3行  <br /></td></tr>
<tr class="separator:ae4c3009c09e6c2d2631122168bbb40fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab13554ccfb91327fcc9d845652a9b79d" id="r_ab13554ccfb91327fcc9d845652a9b79d"><td class="memItemLeft" align="right" valign="top"><a id="ab13554ccfb91327fcc9d845652a9b79d" name="ab13554ccfb91327fcc9d845652a9b79d"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>isLooseStyle</b> (RibbonStyles s)</td></tr>
<tr class="separator:ab13554ccfb91327fcc9d845652a9b79d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23146bc078ae770d3a39fb029c04ab72" id="r_a23146bc078ae770d3a39fb029c04ab72"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a23146bc078ae770d3a39fb029c04ab72">isCompactStyle</a> (RibbonStyles s)</td></tr>
<tr class="memdesc:a23146bc078ae770d3a39fb029c04ab72"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断是否是紧凑样式  <br /></td></tr>
<tr class="separator:a23146bc078ae770d3a39fb029c04ab72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c9da4e82f93542ebce57d10a96b4202" id="r_a5c9da4e82f93542ebce57d10a96b4202"><td class="memItemLeft" align="right" valign="top">static QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5c9da4e82f93542ebce57d10a96b4202">versionString</a> ()</td></tr>
<tr class="memdesc:a5c9da4e82f93542ebce57d10a96b4202"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取版本信息  <br /></td></tr>
<tr class="separator:a5c9da4e82f93542ebce57d10a96b4202"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acdfe096fb0f275fc375fda57877a24e3" id="r_acdfe096fb0f275fc375fda57877a24e3"><td class="memItemLeft" align="right" valign="top">static QList&lt; QColor &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#acdfe096fb0f275fc375fda57877a24e3">defaultContextCategoryColorList</a> ()</td></tr>
<tr class="memdesc:acdfe096fb0f275fc375fda57877a24e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取默认的上下文标签颜色列表  <br /></td></tr>
<tr class="separator:acdfe096fb0f275fc375fda57877a24e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab58c44e05ffb11657b5ae2070242a9a" id="r_aab58c44e05ffb11657b5ae2070242a9a"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aab58c44e05ffb11657b5ae2070242a9a">initHighDpi</a> ()</td></tr>
<tr class="memdesc:aab58c44e05ffb11657b5ae2070242a9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">提供高分屏的支持静态函数  <br /></td></tr>
<tr class="separator:aab58c44e05ffb11657b5ae2070242a9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-slots" name="pro-slots"></a>
Protected 槽</h2></td></tr>
<tr class="memitem:aa336ffb42294ca5aff42555b2abfcc52" id="r_aa336ffb42294ca5aff42555b2abfcc52"><td class="memItemLeft" align="right" valign="top"><a id="aa336ffb42294ca5aff42555b2abfcc52" name="aa336ffb42294ca5aff42555b2abfcc52"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>onWindowTitleChanged</b> (const QString &amp;title)</td></tr>
<tr class="separator:aa336ffb42294ca5aff42555b2abfcc52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83ff9201f0e72d22ba389ae590fd7c5d" id="r_a83ff9201f0e72d22ba389ae590fd7c5d"><td class="memItemLeft" align="right" valign="top"><a id="a83ff9201f0e72d22ba389ae590fd7c5d" name="a83ff9201f0e72d22ba389ae590fd7c5d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>onWindowIconChanged</b> (const QIcon &amp;i)</td></tr>
<tr class="separator:a83ff9201f0e72d22ba389ae590fd7c5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a882bfbb79ad76cfcaf48819879198452" id="r_a882bfbb79ad76cfcaf48819879198452"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a882bfbb79ad76cfcaf48819879198452">onCategoryWindowTitleChanged</a> (const QString &amp;title)</td></tr>
<tr class="memdesc:a882bfbb79ad76cfcaf48819879198452"><td class="mdescLeft">&#160;</td><td class="mdescRight">category的名字发生改变触发  <br /></td></tr>
<tr class="separator:a882bfbb79ad76cfcaf48819879198452"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9d2d1a73de3d68e8c969c9f0519cb34" id="r_af9d2d1a73de3d68e8c969c9f0519cb34"><td class="memItemLeft" align="right" valign="top"><a id="af9d2d1a73de3d68e8c969c9f0519cb34" name="af9d2d1a73de3d68e8c969c9f0519cb34"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>onStackWidgetHided</b> ()</td></tr>
<tr class="memdesc:af9d2d1a73de3d68e8c969c9f0519cb34"><td class="mdescLeft">&#160;</td><td class="mdescRight">ribbon的显示界面隐藏 <br /></td></tr>
<tr class="separator:af9d2d1a73de3d68e8c969c9f0519cb34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf254fc1299e3458a4904478737adaf4" id="r_aaf254fc1299e3458a4904478737adaf4"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aaf254fc1299e3458a4904478737adaf4">onCurrentRibbonTabChanged</a> (int index)</td></tr>
<tr class="memdesc:aaf254fc1299e3458a4904478737adaf4"><td class="mdescLeft">&#160;</td><td class="mdescRight">标签切换触发槽函数  <br /></td></tr>
<tr class="separator:aaf254fc1299e3458a4904478737adaf4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9477953912ddd47fd36b2140a936b2fd" id="r_a9477953912ddd47fd36b2140a936b2fd"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9477953912ddd47fd36b2140a936b2fd">onCurrentRibbonTabClicked</a> (int index)</td></tr>
<tr class="memdesc:a9477953912ddd47fd36b2140a936b2fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">ribbon tab bar单击  <br /></td></tr>
<tr class="separator:a9477953912ddd47fd36b2140a936b2fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f33ace708f5b433585295ab0d524f1e" id="r_a8f33ace708f5b433585295ab0d524f1e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8f33ace708f5b433585295ab0d524f1e">onCurrentRibbonTabDoubleClicked</a> (int index)</td></tr>
<tr class="memdesc:a8f33ace708f5b433585295ab0d524f1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">ribbon tab bar双击  <br /></td></tr>
<tr class="separator:a8f33ace708f5b433585295ab0d524f1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1cf4ebbcfee1e19140942934721502f" id="r_ac1cf4ebbcfee1e19140942934721502f"><td class="memItemLeft" align="right" valign="top"><a id="ac1cf4ebbcfee1e19140942934721502f" name="ac1cf4ebbcfee1e19140942934721502f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>onContextsCategoryPageAdded</b> (<a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *category)</td></tr>
<tr class="separator:ac1cf4ebbcfee1e19140942934721502f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf050e323b49950d89cc08e540ea2c06" id="r_abf050e323b49950d89cc08e540ea2c06"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abf050e323b49950d89cc08e540ea2c06">onContextsCategoryCategoryNameChanged</a> (<a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *category, const QString &amp;title)</td></tr>
<tr class="memdesc:abf050e323b49950d89cc08e540ea2c06"><td class="mdescLeft">&#160;</td><td class="mdescRight">上下文标签管理的标签的名字发生变换  <br /></td></tr>
<tr class="separator:abf050e323b49950d89cc08e540ea2c06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d85f521484c2a34a507e561e2f85602" id="r_a2d85f521484c2a34a507e561e2f85602"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2d85f521484c2a34a507e561e2f85602">onTabMoved</a> (int from, int to)</td></tr>
<tr class="memdesc:a2d85f521484c2a34a507e561e2f85602"><td class="mdescLeft">&#160;</td><td class="mdescRight">标签移动的信号  <br /></td></tr>
<tr class="separator:a2d85f521484c2a34a507e561e2f85602"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:aa2dd02c2bb69aeea4ec2e24a56e1aa78" id="r_aa2dd02c2bb69aeea4ec2e24a56e1aa78"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa2dd02c2bb69aeea4ec2e24a56e1aa78">eventFilter</a> (QObject *obj, QEvent *e) override</td></tr>
<tr class="memdesc:aa2dd02c2bb69aeea4ec2e24a56e1aa78"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="#aa2dd02c2bb69aeea4ec2e24a56e1aa78" title="SARibbonBar::eventFilter">SARibbonBar::eventFilter</a>  <br /></td></tr>
<tr class="separator:aa2dd02c2bb69aeea4ec2e24a56e1aa78"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a685b5844dff66fd8c8be3676bba49450" id="r_a685b5844dff66fd8c8be3676bba49450"><td class="memItemLeft" align="right" valign="top"><a id="a685b5844dff66fd8c8be3676bba49450" name="a685b5844dff66fd8c8be3676bba49450"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>calcMinTabBarWidth</b> () const</td></tr>
<tr class="memdesc:a685b5844dff66fd8c8be3676bba49450"><td class="mdescLeft">&#160;</td><td class="mdescRight">根据情况重置tabbar的宽度，主要针对wps模式 <br /></td></tr>
<tr class="separator:a685b5844dff66fd8c8be3676bba49450"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d02fab4dc25644d7a3d95baab00e98b" id="r_a3d02fab4dc25644d7a3d95baab00e98b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3d02fab4dc25644d7a3d95baab00e98b">updateCategoryTitleToTabName</a> ()</td></tr>
<tr class="memdesc:a3d02fab4dc25644d7a3d95baab00e98b"><td class="mdescLeft">&#160;</td><td class="mdescRight">更新所有的category title对应的tab名  <br /></td></tr>
<tr class="separator:a3d02fab4dc25644d7a3d95baab00e98b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6c3c9088c47582e7dae9ab0c6baab6f" id="r_ad6c3c9088c47582e7dae9ab0c6baab6f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad6c3c9088c47582e7dae9ab0c6baab6f">setSystemButtonGroupSize</a> (const QSize &amp;s)</td></tr>
<tr class="memdesc:ad6c3c9088c47582e7dae9ab0c6baab6f"><td class="mdescLeft">&#160;</td><td class="mdescRight">告知WindowButtonGroup的尺寸  <br /></td></tr>
<tr class="separator:ad6c3c9088c47582e7dae9ab0c6baab6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55bfe30c1d9677d6d22195a2972ae1d1" id="r_a55bfe30c1d9677d6d22195a2972ae1d1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a55bfe30c1d9677d6d22195a2972ae1d1">setMainWindowStyles</a> (SARibbonMainWindowStyles s)</td></tr>
<tr class="memdesc:a55bfe30c1d9677d6d22195a2972ae1d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">更新标题栏的区域位置  <br /></td></tr>
<tr class="separator:a55bfe30c1d9677d6d22195a2972ae1d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5dee61d86a2aa7773056ff96fb59749" id="r_af5dee61d86a2aa7773056ff96fb59749"><td class="memItemLeft" align="right" valign="top"><a id="af5dee61d86a2aa7773056ff96fb59749" name="af5dee61d86a2aa7773056ff96fb59749"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setRibbonMainwindowStyle</b> ()</td></tr>
<tr class="separator:af5dee61d86a2aa7773056ff96fb59749"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32048828c4a07434b53240f8f80df346" id="r_a32048828c4a07434b53240f8f80df346"><td class="memItemLeft" align="right" valign="top"><a id="a32048828c4a07434b53240f8f80df346" name="a32048828c4a07434b53240f8f80df346"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>paintEvent</b> (QPaintEvent *e) override</td></tr>
<tr class="separator:a32048828c4a07434b53240f8f80df346"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7399439e99c341cb5de4ecbe47310f40" id="r_a7399439e99c341cb5de4ecbe47310f40"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7399439e99c341cb5de4ecbe47310f40">moveEvent</a> (QMoveEvent *e) override</td></tr>
<tr class="memdesc:a7399439e99c341cb5de4ecbe47310f40"><td class="mdescLeft">&#160;</td><td class="mdescRight">重写moveevent是为了在移动时调整isPopupMode状态下的stackedContainerWidget位置  <br /></td></tr>
<tr class="separator:a7399439e99c341cb5de4ecbe47310f40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7a2290259d808dc056aef6d6fb9ef0b" id="r_af7a2290259d808dc056aef6d6fb9ef0b"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af7a2290259d808dc056aef6d6fb9ef0b">changeEvent</a> (QEvent *e) override</td></tr>
<tr class="memdesc:af7a2290259d808dc056aef6d6fb9ef0b"><td class="mdescLeft">&#160;</td><td class="mdescRight">跟踪字体改变  <br /></td></tr>
<tr class="separator:af7a2290259d808dc056aef6d6fb9ef0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a446c7e91ea590753df843bb6aa9f47ac" id="r_a446c7e91ea590753df843bb6aa9f47ac"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a446c7e91ea590753df843bb6aa9f47ac">paintTabbarBaseLine</a> (QPainter &amp;painter)</td></tr>
<tr class="memdesc:a446c7e91ea590753df843bb6aa9f47ac"><td class="mdescLeft">&#160;</td><td class="mdescRight">绘制tabbar下的基准线，这个方法仅仅在office2013模式下需要  <br /></td></tr>
<tr class="separator:a446c7e91ea590753df843bb6aa9f47ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26269befab74e2b2630f6787146ef4d9" id="r_a26269befab74e2b2630f6787146ef4d9"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a26269befab74e2b2630f6787146ef4d9">paintWindowTitle</a> (QPainter &amp;painter, const QString &amp;title, const QRect &amp;titleRegion)</td></tr>
<tr class="memdesc:a26269befab74e2b2630f6787146ef4d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">绘制标题栏  <br /></td></tr>
<tr class="separator:a26269befab74e2b2630f6787146ef4d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4183051c49c3f79bb352a575e76636c" id="r_ab4183051c49c3f79bb352a575e76636c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab4183051c49c3f79bb352a575e76636c">paintContextCategoryTab</a> (QPainter &amp;painter, const QString &amp;title, const QRect &amp;contextRect, const QColor &amp;color)</td></tr>
<tr class="memdesc:ab4183051c49c3f79bb352a575e76636c"><td class="mdescLeft">&#160;</td><td class="mdescRight">绘制上下文标签的背景  <br /></td></tr>
<tr class="separator:ab4183051c49c3f79bb352a575e76636c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="properties" name="properties"></a>
属性</h2></td></tr>
<tr class="memitem:a178538199db769b1a9c145d70d851f03" id="r_a178538199db769b1a9c145d70d851f03"><td class="memItemLeft" align="right" valign="top"><a id="a178538199db769b1a9c145d70d851f03" name="a178538199db769b1a9c145d70d851f03"></a>
RibbonStyles&#160;</td><td class="memItemRight" valign="bottom"><b>ribbonStyle</b></td></tr>
<tr class="separator:a178538199db769b1a9c145d70d851f03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab572959677b960f60e2cc5fdd314ecd1" id="r_ab572959677b960f60e2cc5fdd314ecd1"><td class="memItemLeft" align="right" valign="top"><a id="ab572959677b960f60e2cc5fdd314ecd1" name="ab572959677b960f60e2cc5fdd314ecd1"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>minimumMode</b></td></tr>
<tr class="separator:ab572959677b960f60e2cc5fdd314ecd1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8990273e93a7caf967420956d29fe647" id="r_a8990273e93a7caf967420956d29fe647"><td class="memItemLeft" align="right" valign="top"><a id="a8990273e93a7caf967420956d29fe647" name="a8990273e93a7caf967420956d29fe647"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>minimumModeButton</b></td></tr>
<tr class="separator:a8990273e93a7caf967420956d29fe647"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94e2410c7003efe04a1e3d79f200c17f" id="r_a94e2410c7003efe04a1e3d79f200c17f"><td class="memItemLeft" align="right" valign="top"><a id="a94e2410c7003efe04a1e3d79f200c17f" name="a94e2410c7003efe04a1e3d79f200c17f"></a>
QColor&#160;</td><td class="memItemRight" valign="bottom"><b>windowTitleTextColor</b></td></tr>
<tr class="separator:a94e2410c7003efe04a1e3d79f200c17f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:addcee8f8cb1313231619462fea600c19" id="r_addcee8f8cb1313231619462fea600c19"><td class="memItemLeft" align="right" valign="top"><a id="addcee8f8cb1313231619462fea600c19" name="addcee8f8cb1313231619462fea600c19"></a>
QColor&#160;</td><td class="memItemRight" valign="bottom"><b>tabBarBaseLineColor</b></td></tr>
<tr class="separator:addcee8f8cb1313231619462fea600c19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe6fcd84352eab428fac55a360592108" id="r_afe6fcd84352eab428fac55a360592108"><td class="memItemLeft" align="right" valign="top"><a id="afe6fcd84352eab428fac55a360592108" name="afe6fcd84352eab428fac55a360592108"></a>
Qt::Alignment&#160;</td><td class="memItemRight" valign="bottom"><b>windowTitleAligment</b></td></tr>
<tr class="separator:afe6fcd84352eab428fac55a360592108"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adee2af1297de8232dfa7a85548c6559c" id="r_adee2af1297de8232dfa7a85548c6559c"><td class="memItemLeft" align="right" valign="top"><a id="adee2af1297de8232dfa7a85548c6559c" name="adee2af1297de8232dfa7a85548c6559c"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>enableWordWrap</b></td></tr>
<tr class="separator:adee2af1297de8232dfa7a85548c6559c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2711bb99c817107f2a12f7d0a4d476b" id="r_af2711bb99c817107f2a12f7d0a4d476b"><td class="memItemLeft" align="right" valign="top"><a id="af2711bb99c817107f2a12f7d0a4d476b" name="af2711bb99c817107f2a12f7d0a4d476b"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>enableShowPannelTitle</b></td></tr>
<tr class="separator:af2711bb99c817107f2a12f7d0a4d476b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7fbc3e90816499f95850d95c4885d1b9" id="r_a7fbc3e90816499f95850d95c4885d1b9"><td class="memItemLeft" align="right" valign="top"><a id="a7fbc3e90816499f95850d95c4885d1b9" name="a7fbc3e90816499f95850d95c4885d1b9"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>tabOnTitle</b></td></tr>
<tr class="separator:a7fbc3e90816499f95850d95c4885d1b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2c970db801f4b36e7959845e8cd48bf" id="r_ae2c970db801f4b36e7959845e8cd48bf"><td class="memItemLeft" align="right" valign="top"><a id="ae2c970db801f4b36e7959845e8cd48bf" name="ae2c970db801f4b36e7959845e8cd48bf"></a>
<a class="el" href="class_s_a_ribbon_pannel.html#a9da35ca039ab4045209d5614e4566219">SARibbonPannel::PannelLayoutMode</a>&#160;</td><td class="memItemRight" valign="bottom"><b>pannelLayoutMode</b></td></tr>
<tr class="separator:ae2c970db801f4b36e7959845e8cd48bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="friends" name="friends"></a>
友元</h2></td></tr>
<tr class="memitem:a710070fc67947d4873daee2c16b6af9a" id="r_a710070fc67947d4873daee2c16b6af9a"><td class="memItemLeft" align="right" valign="top"><a id="a710070fc67947d4873daee2c16b6af9a" name="a710070fc67947d4873daee2c16b6af9a"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>SARibbonMainWindow</b></td></tr>
<tr class="separator:a710070fc67947d4873daee2c16b6af9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71bac0a3fee7c240cbdebee000ff1206" id="r_a71bac0a3fee7c240cbdebee000ff1206"><td class="memItemLeft" align="right" valign="top"><a id="a71bac0a3fee7c240cbdebee000ff1206" name="a71bac0a3fee7c240cbdebee000ff1206"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>SARibbonSystemButtonBar</b></td></tr>
<tr class="separator:a71bac0a3fee7c240cbdebee000ff1206"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>SARibbonBar继承于QMenuBar,在SARibbonMainWindow中直接替换了原来的QMenuBar </p>
<p>通过setRibbonStyle函数设置ribbon的风格:</p>
<div class="fragment"><div class="line"><span class="keywordtype">void</span> <a class="code hl_function" href="#a7ee2ffcde55433d35705980030b0a38d">setRibbonStyle</a>(RibbonStyles v);</div>
<div class="ttc" id="aclass_s_a_ribbon_bar_html_a7ee2ffcde55433d35705980030b0a38d"><div class="ttname"><a href="#a7ee2ffcde55433d35705980030b0a38d">SARibbonBar::setRibbonStyle</a></div><div class="ttdeci">void setRibbonStyle(RibbonStyles v)</div><div class="ttdoc">设置ribbonbar的风格，此函数会重新设置所有元素，包括button的布局方式， 尤其是从三行变到两行的过程，重设的内容较多</div><div class="ttdef"><b>Definition</b> SARibbonBar.cpp:1434</div></div>
</div><!-- fragment --><p>SARibbonBar参考office和wps，提供了四种风格的Ribbon模式,SARibbonBar::RibbonStyles</p>
<p>如果想ribbon占用的空间足够小，WpsLiteStyleTwoRow模式能比OfficeStyle节省35的高度空间</p>
<p>如何生成ribbon?先看看一个传统的Menu/ToolBar是如何生成的：</p>
<div class="fragment"><div class="line"><span class="keywordtype">void</span> MainWindow::MainWindow()</div>
<div class="line">{</div>
<div class="line">   QMenu *fileMenu = menuBar()-&gt;addMenu(tr(<span class="stringliteral">&quot;&amp;File&quot;</span>));</div>
<div class="line">   QToolBar *fileToolBar = addToolBar(tr(<span class="stringliteral">&quot;File&quot;</span>));</div>
<div class="line">   <span class="comment">//生成action</span></div>
<div class="line">   QAction *newAct = <span class="keyword">new</span> QAction(newIcon, tr(<span class="stringliteral">&quot;&amp;New&quot;</span>), <span class="keyword">this</span>);</div>
<div class="line">   fileMenu-&gt;addAction(newAct);</div>
<div class="line">   fileToolBar-&gt;addAction(newAct);</div>
<div class="line"> </div>
<div class="line">   QAction *openAct = <span class="keyword">new</span> QAction(openIcon, tr(<span class="stringliteral">&quot;&amp;Open...&quot;</span>), <span class="keyword">this</span>);</div>
<div class="line">   fileMenu-&gt;addAction(openAct);</div>
<div class="line">   fileToolBar-&gt;addAction(openAct);</div>
<div class="line">}</div>
</div><!-- fragment --><p>传统的Menu/ToolBar主要通过QMenu的addMenu添加菜单,通过QMainWindow::addToolBar生成QToolBar, 再把QAction设置进QMenu和QToolBar中</p>
<p>SARibbonBar和传统方法相似，不过相对于传统的Menu/ToolBar QMenu和QToolBar是平级的， Ribbon是有明显的层级关系，SARibbonBar下面是 SARibbonCategory， SARibbonCategory下面是<a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> ，SARibbonPannel下面是<a class="el" href="class_s_a_ribbon_tool_button.html">SARibbonToolButton</a> ， SARibbonToolButton管理着QAction</p>
<p>因此，生成一个ribbon只需以下几个函数： </p><div class="fragment"><div class="line"><a class="code hl_class" href="class_s_a_ribbon_category.html">SARibbonCategory</a> * <a class="code hl_function" href="#a9adeaabbb6e8dc5d593dab4a90c83e63">SARibbonBar::addCategoryPage</a>(<span class="keyword">const</span> QString&amp; title);</div>
<div class="line"><a class="code hl_class" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> * <a class="code hl_function" href="class_s_a_ribbon_category.html#a93a9ccb6d742ce1c5974f8aada372651">SARibbonCategory::addPannel</a>(<span class="keyword">const</span> QString&amp; title);</div>
<div class="line"><a class="code hl_class" href="class_s_a_ribbon_tool_button.html">SARibbonToolButton</a> * <a class="code hl_function" href="class_s_a_ribbon_pannel.html#aea8d760554e388afd905ea7c56c44430">SARibbonPannel::addLargeAction</a>(QAction *action);</div>
<div class="line"><a class="code hl_class" href="class_s_a_ribbon_tool_button.html">SARibbonToolButton</a> * <a class="code hl_function" href="class_s_a_ribbon_pannel.html#a009dfafbf68c8cb7bc0e0357af94997d">SARibbonPannel::addSmallAction</a>(QAction *action);</div>
<div class="ttc" id="aclass_s_a_ribbon_bar_html_a9adeaabbb6e8dc5d593dab4a90c83e63"><div class="ttname"><a href="#a9adeaabbb6e8dc5d593dab4a90c83e63">SARibbonBar::addCategoryPage</a></div><div class="ttdeci">SARibbonCategory * addCategoryPage(const QString &amp;title)</div><div class="ttdoc">添加一个标签 如果需要删除，直接delete即可，SARibbonBar会对其进行处理</div><div class="ttdef"><b>Definition</b> SARibbonBar.cpp:468</div></div>
<div class="ttc" id="aclass_s_a_ribbon_category_html"><div class="ttname"><a href="class_s_a_ribbon_category.html">SARibbonCategory</a></div><div class="ttdoc">Ribbon控件中的分类选项卡页面（Category）</div><div class="ttdef"><b>Definition</b> SARibbonCategory.h:23</div></div>
<div class="ttc" id="aclass_s_a_ribbon_category_html_a93a9ccb6d742ce1c5974f8aada372651"><div class="ttname"><a href="class_s_a_ribbon_category.html#a93a9ccb6d742ce1c5974f8aada372651">SARibbonCategory::addPannel</a></div><div class="ttdeci">SARibbonPannel * addPannel(const QString &amp;title)</div><div class="ttdoc">添加面板(pannel)</div><div class="ttdef"><b>Definition</b> SARibbonCategory.cpp:333</div></div>
<div class="ttc" id="aclass_s_a_ribbon_pannel_html"><div class="ttname"><a href="class_s_a_ribbon_pannel.html">SARibbonPannel</a></div><div class="ttdoc">pannel页窗口，pannel是ribbon的面板用于承放控件</div><div class="ttdef"><b>Definition</b> SARibbonPannel.h:51</div></div>
<div class="ttc" id="aclass_s_a_ribbon_pannel_html_a009dfafbf68c8cb7bc0e0357af94997d"><div class="ttname"><a href="class_s_a_ribbon_pannel.html#a009dfafbf68c8cb7bc0e0357af94997d">SARibbonPannel::addSmallAction</a></div><div class="ttdeci">void addSmallAction(QAction *action)</div><div class="ttdoc">添加小图标</div><div class="ttdef"><b>Definition</b> SARibbonPannel.cpp:311</div></div>
<div class="ttc" id="aclass_s_a_ribbon_pannel_html_aea8d760554e388afd905ea7c56c44430"><div class="ttname"><a href="class_s_a_ribbon_pannel.html#aea8d760554e388afd905ea7c56c44430">SARibbonPannel::addLargeAction</a></div><div class="ttdeci">void addLargeAction(QAction *action)</div><div class="ttdoc">添加大图标</div><div class="ttdef"><b>Definition</b> SARibbonPannel.cpp:287</div></div>
<div class="ttc" id="aclass_s_a_ribbon_tool_button_html"><div class="ttname"><a href="class_s_a_ribbon_tool_button.html">SARibbonToolButton</a></div><div class="ttdoc">Ribbon界面适用的toolButton</div><div class="ttdef"><b>Definition</b> SARibbonToolButton.h:14</div></div>
</div><!-- fragment --><p>因此生成步骤如下：</p>
<div class="fragment"><div class="line"><span class="comment">//成员变量</span></div>
<div class="line"><a class="code hl_class" href="class_s_a_ribbon_category.html">SARibbonCategory</a>* categoryMain;</div>
<div class="line"><a class="code hl_class" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a>* FilePannel;</div>
<div class="line"> </div>
<div class="line"><span class="comment">//建立ui</span></div>
<div class="line"><span class="keywordtype">void</span> setupRibbonUi()</div>
<div class="line">{</div>
<div class="line">    ......</div>
<div class="line">    <span class="comment">//ribbonwindow为SARibbonMainWindow</span></div>
<div class="line">    <a class="code hl_class" href="class_s_a_ribbon_bar.html">SARibbonBar</a>* ribbon = ribbonwindow-&gt;ribbonBar();</div>
<div class="line">    ribbon-&gt;<a class="code hl_function" href="#a7ee2ffcde55433d35705980030b0a38d">setRibbonStyle</a>(SARibbonBar::WpsLiteStyle);</div>
<div class="line">    <span class="comment">//添加一个Main标签</span></div>
<div class="line">    categoryMain = ribbon-&gt;<a class="code hl_function" href="#a9adeaabbb6e8dc5d593dab4a90c83e63">addCategoryPage</a>(QStringLiteral(<span class="stringliteral">&quot;Main&quot;</span>));</div>
<div class="line">    <span class="comment">//Main标签下添加一个File Pannel</span></div>
<div class="line">    FilePannel = categoryMain-&gt;<a class="code hl_function" href="class_s_a_ribbon_category.html#a93a9ccb6d742ce1c5974f8aada372651">addPannel</a>(QStringLiteral(<span class="stringliteral">&quot;FilePannel&quot;</span>));</div>
<div class="line">    <span class="comment">//开始为File Pannel添加action</span></div>
<div class="line">    FilePannel-&gt;<a class="code hl_function" href="class_s_a_ribbon_pannel.html#aea8d760554e388afd905ea7c56c44430">addLargeAction</a>(actionNew);</div>
<div class="line">    FilePannel-&gt;<a class="code hl_function" href="class_s_a_ribbon_pannel.html#aea8d760554e388afd905ea7c56c44430">addLargeAction</a>(actionOpen);</div>
<div class="line">    FilePannel-&gt;<a class="code hl_function" href="class_s_a_ribbon_pannel.html#aea8d760554e388afd905ea7c56c44430">addLargeAction</a>(actionSave);</div>
<div class="line">    FilePannel-&gt;<a class="code hl_function" href="class_s_a_ribbon_pannel.html#a009dfafbf68c8cb7bc0e0357af94997d">addSmallAction</a>(actionImportMesh);</div>
<div class="line">    FilePannel-&gt;<a class="code hl_function" href="class_s_a_ribbon_pannel.html#a009dfafbf68c8cb7bc0e0357af94997d">addSmallAction</a>(actionImportGeometry);</div>
<div class="line">}</div>
<div class="ttc" id="aclass_s_a_ribbon_bar_html"><div class="ttname"><a href="class_s_a_ribbon_bar.html">SARibbonBar</a></div><div class="ttdoc">SARibbonBar继承于QMenuBar,在SARibbonMainWindow中直接替换了原来的QMenuBar</div><div class="ttdef"><b>Definition</b> SARibbonBar.h:93</div></div>
</div><!-- fragment --> </div><h2 class="groupheader">成员枚举类型说明</h2>
<a id="a00f6355e3175ff1eb2d06b607c600488" name="a00f6355e3175ff1eb2d06b607c600488"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00f6355e3175ff1eb2d06b607c600488">&#9670;&#160;</a></span>RibbonMode</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="#a00f6355e3175ff1eb2d06b607c600488">SARibbonBar::RibbonMode</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>定义当前ribbon 的状态 </p>
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="a00f6355e3175ff1eb2d06b607c600488a67aa36c2caad880c5d1e5eb986c12ccf" name="a00f6355e3175ff1eb2d06b607c600488a67aa36c2caad880c5d1e5eb986c12ccf"></a>MinimumRibbonMode&#160;</td><td class="fielddoc"><p>缩小模式 </p>
</td></tr>
<tr><td class="fieldname"><a id="a00f6355e3175ff1eb2d06b607c600488a0656b0e8249a7fee766d66fd65ea1d16" name="a00f6355e3175ff1eb2d06b607c600488a0656b0e8249a7fee766d66fd65ea1d16"></a>NormalRibbonMode&#160;</td><td class="fielddoc"><p>正常模式 </p>
</td></tr>
</table>

</div>
</div>
<a id="ac2a1554ddb5825d7866968152239b1df" name="ac2a1554ddb5825d7866968152239b1df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac2a1554ddb5825d7866968152239b1df">&#9670;&#160;</a></span>RibbonStyleFlag</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="#ac2a1554ddb5825d7866968152239b1df">SARibbonBar::RibbonStyleFlag</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="ac2a1554ddb5825d7866968152239b1dfa314db797c9294386824e61264b26f39d" name="ac2a1554ddb5825d7866968152239b1dfa314db797c9294386824e61264b26f39d"></a>RibbonStyleLooseThreeRow&#160;</td><td class="fielddoc"><p>宽松结构，3行模式 </p>
</td></tr>
<tr><td class="fieldname"><a id="ac2a1554ddb5825d7866968152239b1dfa5633a67b57cac6b7291b99bc5328349b" name="ac2a1554ddb5825d7866968152239b1dfa5633a67b57cac6b7291b99bc5328349b"></a>RibbonStyleCompactThreeRow&#160;</td><td class="fielddoc"><p>紧凑结构，3行模式 </p>
</td></tr>
<tr><td class="fieldname"><a id="ac2a1554ddb5825d7866968152239b1dfa6feb099a7256d645887d48e9e23fb27f" name="ac2a1554ddb5825d7866968152239b1dfa6feb099a7256d645887d48e9e23fb27f"></a>RibbonStyleLooseTwoRow&#160;</td><td class="fielddoc"><p>宽松结构，2行模式 </p>
</td></tr>
<tr><td class="fieldname"><a id="ac2a1554ddb5825d7866968152239b1dfa13c620a5ed961e5255acc3c96e93fe6f" name="ac2a1554ddb5825d7866968152239b1dfa13c620a5ed961e5255acc3c96e93fe6f"></a>RibbonStyleCompactTwoRow&#160;</td><td class="fielddoc"><p>紧凑结构，2行模式 </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">构造及析构函数说明</h2>
<a id="a91f29a50127bc2e18ce7a444e86e799f" name="a91f29a50127bc2e18ce7a444e86e799f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91f29a50127bc2e18ce7a444e86e799f">&#9670;&#160;</a></span>SARibbonBar()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">SARibbonBar::SARibbonBar </td>
          <td>(</td>
          <td class="paramtype">QWidget *</td>          <td class="paramname"><span class="paramname"><em>parent</em><span class="paramdefsep"> = </span><span class="paramdefval">nullptr</span></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>SARibbonBar构造函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a93c68abf4c6a56255db664f9e0075754" name="a93c68abf4c6a56255db664f9e0075754"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a93c68abf4c6a56255db664f9e0075754">&#9670;&#160;</a></span>actionTriggered</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::actionTriggered </td>
          <td>(</td>
          <td class="paramtype">QAction *</td>          <td class="paramname"><span class="paramname"><em>action</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>参考QToolBar::actionTriggered的信号 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">action</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a1ec8a480b1f06de48da555eceb4711d8" name="a1ec8a480b1f06de48da555eceb4711d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ec8a480b1f06de48da555eceb4711d8">&#9670;&#160;</a></span>activeQuickAccessBar()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_quick_access_bar.html">SARibbonQuickAccessBar</a> * SARibbonBar::activeQuickAccessBar </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>激活QuickAccessBar </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a0dcb1c6f3278cf211142d071f4487110" name="a0dcb1c6f3278cf211142d071f4487110"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0dcb1c6f3278cf211142d071f4487110">&#9670;&#160;</a></span>activeRightButtonGroup()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_button_group_widget.html">SARibbonButtonGroupWidget</a> * SARibbonBar::activeRightButtonGroup </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>激活tabbar右边的按钮群 </p>
<dl class="section return"><dt>返回</dt><dd>返回右边的按钮群指针 </dd></dl>

</div>
</div>
<a id="a9adeaabbb6e8dc5d593dab4a90c83e63" name="a9adeaabbb6e8dc5d593dab4a90c83e63"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9adeaabbb6e8dc5d593dab4a90c83e63">&#9670;&#160;</a></span>addCategoryPage() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> * SARibbonBar::addCategoryPage </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>title</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加一个标签 如果需要删除，直接delete即可，SARibbonBar会对其进行处理 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">title</td><td>标签名字，默认情况下SARibbonCategory的object name也被设置为title </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回一个窗口容器，在Category里可以添加其他控件 </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_s_a_ribbon_category.html" title="Ribbon控件中的分类选项卡页面（Category）">SARibbonCategory</a> </dd></dl>

</div>
</div>
<a id="abc17b6003d5d10213f1e68ad36505d87" name="abc17b6003d5d10213f1e68ad36505d87"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abc17b6003d5d10213f1e68ad36505d87">&#9670;&#160;</a></span>addCategoryPage() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::addCategoryPage </td>
          <td>(</td>
          <td class="paramtype">QWidget *</td>          <td class="paramname"><span class="paramname"><em>category</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>qtdesigner专用 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">category</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a930972df97357b0073f0da33c98c6d80" name="a930972df97357b0073f0da33c98c6d80"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a930972df97357b0073f0da33c98c6d80">&#9670;&#160;</a></span>addCategoryPage() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::addCategoryPage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *</td>          <td class="paramname"><span class="paramname"><em>category</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加一个标签 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">category</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a15762caa4a372214196b133eb0b0b0e1" name="a15762caa4a372214196b133eb0b0b0e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15762caa4a372214196b133eb0b0b0e1">&#9670;&#160;</a></span>addContextCategory() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_context_category.html">SARibbonContextCategory</a> * SARibbonBar::addContextCategory </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>title</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QColor &amp;</td>          <td class="paramname"><span class="paramname"><em>color</em><span class="paramdefsep"> = </span><span class="paramdefval">QColor()</span>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QVariant &amp;</td>          <td class="paramname"><span class="paramname"><em>id</em><span class="paramdefsep"> = </span><span class="paramdefval">QVariant()</span></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加上下文标签 </p>
<p>上下文标签是特殊时候触发的标签，需要用户手动触发</p>
<p>调用<a class="el" href="class_s_a_ribbon_context_category.html#ad4a26f2232831d9770ca698e86509bcc">SARibbonContextCategory::addCategoryPage</a> 可在上下文标签中添加SARibbonCategory， 在上下文标签添加的SARibbonCategory，只有在上下文标签显示的时候才会显示 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">title</td><td>上下文标签的标题，在Office模式下会显示，在wps模式下不显示。默认情况下SARibbonContextCategory的object name也被设置为title </td></tr>
    <tr><td class="paramname">color</td><td>上下文标签的颜色，如果指定为空QColor(),将会使用SARibbonBar的默认色系 </td></tr>
    <tr><td class="paramname">id</td><td>上下文标签的id，以便进行查找 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回上下文标签指针 </dd></dl>
<dl class="section note"><dt>注解</dt><dd>SARibbonBar拥有SARibbonContextCategory的管理权，用户避免在外部直接delete,如果要删除，调用<a class="el" href="#affbf927bcf86e13c1c012793d8b06995">destroyContextCategory</a> 函数 </dd></dl>

</div>
</div>
<a id="a3a8cc3a8a74e922ff90d6dd11ba27351" name="a3a8cc3a8a74e922ff90d6dd11ba27351"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a8cc3a8a74e922ff90d6dd11ba27351">&#9670;&#160;</a></span>addContextCategory() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::addContextCategory </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_context_category.html">SARibbonContextCategory</a> *</td>          <td class="paramname"><span class="paramname"><em>context</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加上下文标签 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a69be16e6d73306d32c64c47e9dde64c0" name="a69be16e6d73306d32c64c47e9dde64c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69be16e6d73306d32c64c47e9dde64c0">&#9670;&#160;</a></span>allActions()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; QAction * &gt; SARibbonBar::allActions </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>此函数会遍历所有pannel，并获取它下面的action </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="ab329b967ebdc7cb1780fd899b5e07d57" name="ab329b967ebdc7cb1780fd899b5e07d57"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab329b967ebdc7cb1780fd899b5e07d57">&#9670;&#160;</a></span>applicationButton()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QAbstractButton * SARibbonBar::applicationButton </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回applicationButton </p>
<dl class="section return"><dt>返回</dt><dd>默认的applicationButton由 <a class="el" href="class_s_a_ribbon_application_button.html">SARibbonApplicationButton</a> 生成，通过<a class="el" href="#a10627559db4101fccaa3ed3ce10cc042">setApplicationButton</a> 可设置为其他button </dd></dl>

</div>
</div>
<a id="aeffbee6347a079f3afb1d2727b45a057" name="aeffbee6347a079f3afb1d2727b45a057"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeffbee6347a079f3afb1d2727b45a057">&#9670;&#160;</a></span>applicationButtonClicked</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::applicationButtonClicked </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>应用按钮点击响应 - 左上角的按钮，通过关联此信号触发应用按钮点击的效果 </p>
<p>例如想点击按钮后弹出一个全屏的窗口（如office这些） </p>

</div>
</div>
<a id="a4e5ea468f360e032091e2c9e8b9d659d" name="a4e5ea468f360e032091e2c9e8b9d659d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e5ea468f360e032091e2c9e8b9d659d">&#9670;&#160;</a></span>buttonTextEllipsisAspectFactor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">qreal SARibbonBar::buttonTextEllipsisAspectFactor </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>文本宽度估算时的宽度比高度系数 </p>
<p>超过此系数的宽度时，开始尝试换行，例如按钮高度为h，如果单行文本的宽度大于h*系数，则按钮将不进行横向拉伸，类似于maxwidth效果</p>
<p>此系数和maxwidth取最小值 </p>

</div>
</div>
<a id="aa7bd2c77eaeeaeadd3610cbc68a98d68" name="aa7bd2c77eaeeaeadd3610cbc68a98d68"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa7bd2c77eaeeaeadd3610cbc68a98d68">&#9670;&#160;</a></span>categoryByIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> * SARibbonBar::categoryByIndex </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>index</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>通过索引找到category，如果超过索引范围，会返回nullptr </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>索引 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>如果超过索引范围，会返回nullptr </dd></dl>
<dl class="section note"><dt>注解</dt><dd>如果此时有上下文标签，上下文的标签也会返回 </dd>
<dd>
通过索引查找的category必须是visible状态的category，如果通过<a class="el" href="#a226989419716735c64cb88c9052ce788">hideCategory</a> 隐藏的标签，通过索引是找不到的 </dd>
<dd>
通过<a class="el" href="#a2ae1298cfdd6d3c8c68260b7a79140fa">categoryByObjectName</a> 可以找到所有加入过的标签， 如果想得到ribbonbar管理的所有标签，可以通过函数<a class="el" href="#ab5d82bcf470ab6c80b8e6993cd318fc1">categoryPages</a> 得到 </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="#a426197af9ca85c888b3aad2134edffdd" title="获取category的索引">categoryIndex</a> <a class="el" href="#a2ae1298cfdd6d3c8c68260b7a79140fa" title="通过ObjectName查找Category">categoryByObjectName</a> <a class="el" href="#ae341612d4118c51e3cef6f3746493937" title="通过名字查找Category">categoryByName</a> </dd></dl>

</div>
</div>
<a id="ae341612d4118c51e3cef6f3746493937" name="ae341612d4118c51e3cef6f3746493937"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae341612d4118c51e3cef6f3746493937">&#9670;&#160;</a></span>categoryByName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> * SARibbonBar::categoryByName </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>title</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>通过名字查找Category </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">title</td><td>Category的名字，既标签的标题 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>如果没有找到，将返回nullptr，如果有重名，将返回第一个查询到的名字，因此，尽量避免重名标签 </dd></dl>
<dl class="section note"><dt>注解</dt><dd>由于翻译等原因，可能title会变化，因此如果想通过固定内容查找category，应该使用 <a class="el" href="#a2ae1298cfdd6d3c8c68260b7a79140fa">categoryByObjectName</a> </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="#a2ae1298cfdd6d3c8c68260b7a79140fa" title="通过ObjectName查找Category">categoryByObjectName</a> </dd></dl>

</div>
</div>
<a id="a2ae1298cfdd6d3c8c68260b7a79140fa" name="a2ae1298cfdd6d3c8c68260b7a79140fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ae1298cfdd6d3c8c68260b7a79140fa">&#9670;&#160;</a></span>categoryByObjectName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> * SARibbonBar::categoryByObjectName </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>objname</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>通过ObjectName查找Category </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">objname</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>如果没有找到，将返回nullptr，如果有同样的ObjectName，将返回第一个查询到的名字，因此，尽量避免ObjectName重名 </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="#ae341612d4118c51e3cef6f3746493937" title="通过名字查找Category">categoryByName</a> </dd></dl>

</div>
</div>
<a id="a434f2bcdde7734bf146b4d032da3cf0d" name="a434f2bcdde7734bf146b4d032da3cf0d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a434f2bcdde7734bf146b4d032da3cf0d">&#9670;&#160;</a></span>categoryHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonBar::categoryHeight </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>category的高度 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a426197af9ca85c888b3aad2134edffdd" name="a426197af9ca85c888b3aad2134edffdd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a426197af9ca85c888b3aad2134edffdd">&#9670;&#160;</a></span>categoryIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonBar::categoryIndex </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *</td>          <td class="paramname"><span class="paramname"><em>c</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取category的索引 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">c</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>如果找不到，返回-1 </dd></dl>

</div>
</div>
<a id="ab5d82bcf470ab6c80b8e6993cd318fc1" name="ab5d82bcf470ab6c80b8e6993cd318fc1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5d82bcf470ab6c80b8e6993cd318fc1">&#9670;&#160;</a></span>categoryPages()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; <a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> * &gt; SARibbonBar::categoryPages </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>getAll</em><span class="paramdefsep"> = </span><span class="paramdefval">true</span></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取当前显示的所有的SARibbonCategory，包含未显示的SARibbonContextCategory的SARibbonCategory也一并返回 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="af7a2290259d808dc056aef6d6fb9ef0b" name="af7a2290259d808dc056aef6d6fb9ef0b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af7a2290259d808dc056aef6d6fb9ef0b">&#9670;&#160;</a></span>changeEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::changeEvent </td>
          <td>(</td>
          <td class="paramtype">QEvent *</td>          <td class="paramname"><span class="paramname"><em>e</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>跟踪字体改变 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">event</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a0d731878f8514775a255492e7415a945" name="a0d731878f8514775a255492e7415a945"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d731878f8514775a255492e7415a945">&#9670;&#160;</a></span>contextCategoryColorList()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; QColor &gt; SARibbonBar::contextCategoryColorList </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取上下文标签的颜色列表 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="aaad8d2db83c8438af6ccd3b52f003f21" name="aaad8d2db83c8438af6ccd3b52f003f21"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaad8d2db83c8438af6ccd3b52f003f21">&#9670;&#160;</a></span>contextCategoryList()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; <a class="el" href="class_s_a_ribbon_context_category.html">SARibbonContextCategory</a> * &gt; SARibbonBar::contextCategoryList </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取所有的上下文标签 </p>
<dl class="section return"><dt>返回</dt><dd>返回上下文标签列表 </dd></dl>

</div>
</div>
<a id="a8844aa945cc66c1256b05f0e7b65ce93" name="a8844aa945cc66c1256b05f0e7b65ce93"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8844aa945cc66c1256b05f0e7b65ce93">&#9670;&#160;</a></span>contextCategoryTitleTextColor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QColor SARibbonBar::contextCategoryTitleTextColor </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>contextCategory 标题的颜色 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="ac6da25e07b337cd94ffd5523575109fa" name="ac6da25e07b337cd94ffd5523575109fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac6da25e07b337cd94ffd5523575109fa">&#9670;&#160;</a></span>currentIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonBar::currentIndex </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回当前的tab索引 </p>
<dl class="section return"><dt>返回</dt><dd>当前的索引 </dd></dl>

</div>
</div>
<a id="a7a9a072cc7f9c20cae6372fbc34747c5" name="a7a9a072cc7f9c20cae6372fbc34747c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7a9a072cc7f9c20cae6372fbc34747c5">&#9670;&#160;</a></span>currentRibbonState()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="#a00f6355e3175ff1eb2d06b607c600488">SARibbonBar::RibbonMode</a> SARibbonBar::currentRibbonState </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>当前ribbon的状态（正常|最小化） </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a464f0928b73a1cf70c9edb4611b61c50" name="a464f0928b73a1cf70c9edb4611b61c50"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a464f0928b73a1cf70c9edb4611b61c50">&#9670;&#160;</a></span>currentRibbonStyle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SARibbonBar::RibbonStyles SARibbonBar::currentRibbonStyle </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回当前ribbon的风格 </p>
<dl class="section return"><dt>返回</dt><dd>返回当前ribbon的风格 </dd></dl>

</div>
</div>
<a id="a6a09234c0ea31ac766b2be2413ea81b5" name="a6a09234c0ea31ac766b2be2413ea81b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a09234c0ea31ac766b2be2413ea81b5">&#9670;&#160;</a></span>currentRibbonTabChanged</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::currentRibbonTabChanged </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>index</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>标签页变化触发的信号 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aef9ee2c4da72a1958d2e1be892ca03e9" name="aef9ee2c4da72a1958d2e1be892ca03e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef9ee2c4da72a1958d2e1be892ca03e9">&#9670;&#160;</a></span>currentVisibleContextCategoryTabIndexs()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; int &gt; SARibbonBar::currentVisibleContextCategoryTabIndexs </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取当前可见的上下文标签的tab索引 </p>
<dl class="section return"><dt>返回</dt><dd>返回的索引是经过排序且去重的 </dd></dl>

</div>
</div>
<a id="acdfe096fb0f275fc375fda57877a24e3" name="acdfe096fb0f275fc375fda57877a24e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acdfe096fb0f275fc375fda57877a24e3">&#9670;&#160;</a></span>defaultContextCategoryColorList()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; QColor &gt; SARibbonBar::defaultContextCategoryColorList </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取默认的上下文标签颜色列表 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="affbf927bcf86e13c1c012793d8b06995" name="affbf927bcf86e13c1c012793d8b06995"></a>
<h2 class="memtitle"><span class="permalink"><a href="#affbf927bcf86e13c1c012793d8b06995">&#9670;&#160;</a></span>destroyContextCategory()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::destroyContextCategory </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_context_category.html">SARibbonContextCategory</a> *</td>          <td class="paramname"><span class="paramname"><em>context</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>销毁上下文标签，上下文标签的SARibbonCategory也会随之销毁 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>需要销毁的上下文标签指针 </td></tr>
  </table>
  </dd>
</dl>
<p>1、如果上下文标签显示中，先隐藏</p>
<p>2、删除上下文标签的相关内容</p>

</div>
</div>
<a id="aa2dd02c2bb69aeea4ec2e24a56e1aa78" name="aa2dd02c2bb69aeea4ec2e24a56e1aa78"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa2dd02c2bb69aeea4ec2e24a56e1aa78">&#9670;&#160;</a></span>eventFilter()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonBar::eventFilter </td>
          <td>(</td>
          <td class="paramtype">QObject *</td>          <td class="paramname"><span class="paramname"><em>obj</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QEvent *</td>          <td class="paramname"><span class="paramname"><em>e</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p><a class="el" href="#aa2dd02c2bb69aeea4ec2e24a56e1aa78" title="SARibbonBar::eventFilter">SARibbonBar::eventFilter</a> </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">obj</td><td></td></tr>
    <tr><td class="paramname">e</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a093eae30ea5cd7d38bb755324e4db2d3" name="a093eae30ea5cd7d38bb755324e4db2d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a093eae30ea5cd7d38bb755324e4db2d3">&#9670;&#160;</a></span>haveShowMinimumModeButton()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonBar::haveShowMinimumModeButton </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>是否显示隐藏ribbon按钮 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a226989419716735c64cb88c9052ce788" name="a226989419716735c64cb88c9052ce788"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a226989419716735c64cb88c9052ce788">&#9670;&#160;</a></span>hideCategory()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::hideCategory </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *</td>          <td class="paramname"><span class="paramname"><em>category</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>隐藏category,并不会删除或者取走，只是隐藏 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">category</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5944c3522c196641e756ebd1124d6f56" name="a5944c3522c196641e756ebd1124d6f56"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5944c3522c196641e756ebd1124d6f56">&#9670;&#160;</a></span>hideContextCategory()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::hideContextCategory </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_context_category.html">SARibbonContextCategory</a> *</td>          <td class="paramname"><span class="paramname"><em>context</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>隐藏上下文标签 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>上下文标签指针 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aab58c44e05ffb11657b5ae2070242a9a" name="aab58c44e05ffb11657b5ae2070242a9a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab58c44e05ffb11657b5ae2070242a9a">&#9670;&#160;</a></span>initHighDpi()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::initHighDpi </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>提供高分屏的支持静态函数 </p>
<dl class="section note"><dt>注解</dt><dd>此函数需要在main函数，QApplication生成之前调用 <div class="fragment"><div class="line"><span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span>* argv[]){</div>
<div class="line">   <a class="code hl_function" href="#aab58c44e05ffb11657b5ae2070242a9a">SARibbonBar::initHighDpi</a>();</div>
<div class="line">   QApplication a(argc, argv);</div>
<div class="line">   ...</div>
<div class="line">}</div>
<div class="ttc" id="aclass_s_a_ribbon_bar_html_aab58c44e05ffb11657b5ae2070242a9a"><div class="ttname"><a href="#aab58c44e05ffb11657b5ae2070242a9a">SARibbonBar::initHighDpi</a></div><div class="ttdeci">static void initHighDpi()</div><div class="ttdoc">提供高分屏的支持静态函数</div><div class="ttdef"><b>Definition</b> SARibbonBar.cpp:415</div></div>
</div><!-- fragment --> </dd></dl>

</div>
</div>
<a id="acab0b287d9c9d71dbdf4c828faf95012" name="acab0b287d9c9d71dbdf4c828faf95012"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acab0b287d9c9d71dbdf4c828faf95012">&#9670;&#160;</a></span>insertCategoryPage() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> * SARibbonBar::insertCategoryPage </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>title</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>index</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加一个category，category的位置在index，如果当前category数量少于index，将插入到最后 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">title</td><td>category的标题 </td></tr>
    <tr><td class="paramname">index</td><td>category的位置 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a4a70feff6263a48d8ea2cad06ea6284e" name="a4a70feff6263a48d8ea2cad06ea6284e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a70feff6263a48d8ea2cad06ea6284e">&#9670;&#160;</a></span>insertCategoryPage() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::insertCategoryPage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *</td>          <td class="paramname"><span class="paramname"><em>category</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>index</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>插入一个category </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">category</td><td>SARibbonCategory指针 </td></tr>
    <tr><td class="paramname">index</td><td>插入的位置，如果超出范围，将默认插入到最后 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a4f9d8e3202a775f2eac99e3e0350b3c6" name="a4f9d8e3202a775f2eac99e3e0350b3c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f9d8e3202a775f2eac99e3e0350b3c6">&#9670;&#160;</a></span>isCategoryVisible()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonBar::isCategoryVisible </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *</td>          <td class="paramname"><span class="paramname"><em>c</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断这个category是否在显示状态，也就是tabbar有这个category </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">category</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a342cc583e4633a3325ae254860153550" name="a342cc583e4633a3325ae254860153550"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a342cc583e4633a3325ae254860153550">&#9670;&#160;</a></span>isCompactStyle() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonBar::isCompactStyle </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断当前的样式是否为紧凑样式 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a23146bc078ae770d3a39fb029c04ab72" name="a23146bc078ae770d3a39fb029c04ab72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23146bc078ae770d3a39fb029c04ab72">&#9670;&#160;</a></span>isCompactStyle() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonBar::isCompactStyle </td>
          <td>(</td>
          <td class="paramtype">RibbonStyles</td>          <td class="paramname"><span class="paramname"><em>s</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>判断是否是紧凑样式 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>紧凑样式（不带标题栏）返回true，否则就是宽松样式 </dd></dl>

</div>
</div>
<a id="ae3a45e8bbd414d654229e6363f160ec0" name="ae3a45e8bbd414d654229e6363f160ec0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae3a45e8bbd414d654229e6363f160ec0">&#9670;&#160;</a></span>isContextCategoryVisible()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonBar::isContextCategoryVisible </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_context_category.html">SARibbonContextCategory</a> *</td>          <td class="paramname"><span class="paramname"><em>context</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断上下文是否在显示状态 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>在显示状态返回true </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="#a59f12ba15866a6c1ef1f09d84bf28509" title="设置上下文标签的显示状态">setContextCategoryVisible</a> </dd></dl>

</div>
</div>
<a id="a6b15f52eacd249b5cb70fd38ee1fa15c" name="a6b15f52eacd249b5cb70fd38ee1fa15c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6b15f52eacd249b5cb70fd38ee1fa15c">&#9670;&#160;</a></span>isEnableShowPannelTitle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonBar::isEnableShowPannelTitle </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>是否pannel显示标题栏 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="acc71b49063307bea9d686f5ebc64aa4c" name="acc71b49063307bea9d686f5ebc64aa4c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acc71b49063307bea9d686f5ebc64aa4c">&#9670;&#160;</a></span>isEnableTabDoubleClickToMinimumMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonBar::isEnableTabDoubleClickToMinimumMode </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>是否允许tab双击后进入ribbon的最小模式 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a03fd5682231e8c9fbc7fe2b56a7dfdbb" name="a03fd5682231e8c9fbc7fe2b56a7dfdbb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03fd5682231e8c9fbc7fe2b56a7dfdbb">&#9670;&#160;</a></span>isEnableWordWrap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonBar::isEnableWordWrap </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断是否允许换行 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="abb16adc68b6e6a70b0d53574c2f9e01f" name="abb16adc68b6e6a70b0d53574c2f9e01f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb16adc68b6e6a70b0d53574c2f9e01f">&#9670;&#160;</a></span>isLooseStyle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonBar::isLooseStyle </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断当前的样式是否为宽松样式 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a12bdfd59eec2533895af16819635c227" name="a12bdfd59eec2533895af16819635c227"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a12bdfd59eec2533895af16819635c227">&#9670;&#160;</a></span>isMinimumMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonBar::isMinimumMode </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>当前ribbon是否是隐藏模式 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a59655ca60eb9fd9654d082a7b8c4505f" name="a59655ca60eb9fd9654d082a7b8c4505f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a59655ca60eb9fd9654d082a7b8c4505f">&#9670;&#160;</a></span>isTabOnTitle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonBar::isTabOnTitle </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>tab是否在title上面 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a2890e9e19f3327d22ce65dc39feca04c" name="a2890e9e19f3327d22ce65dc39feca04c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2890e9e19f3327d22ce65dc39feca04c">&#9670;&#160;</a></span>isThreeRowStyle() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonBar::isThreeRowStyle </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断当前的样式是否为3行 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="ae4c3009c09e6c2d2631122168bbb40fd" name="ae4c3009c09e6c2d2631122168bbb40fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae4c3009c09e6c2d2631122168bbb40fd">&#9670;&#160;</a></span>isThreeRowStyle() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonBar::isThreeRowStyle </td>
          <td>(</td>
          <td class="paramtype">RibbonStyles</td>          <td class="paramname"><span class="paramname"><em>s</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>判断样式是否为3行 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>3行返回true，返回false代表当前是2行 </dd></dl>

</div>
</div>
<a id="a5587b5b13b3c17b78e9ebc8005ed288c" name="a5587b5b13b3c17b78e9ebc8005ed288c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5587b5b13b3c17b78e9ebc8005ed288c">&#9670;&#160;</a></span>isTitleVisible()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonBar::isTitleVisible </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断标题是否显示 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a813d1e3c3099750cceadd5954cb0253c" name="a813d1e3c3099750cceadd5954cb0253c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a813d1e3c3099750cceadd5954cb0253c">&#9670;&#160;</a></span>isTwoRowStyle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonBar::isTwoRowStyle </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断当前的样式是否为2行 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a66aaa23c61dbdcda9ec794ca9ae16c19" name="a66aaa23c61dbdcda9ec794ca9ae16c19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a66aaa23c61dbdcda9ec794ca9ae16c19">&#9670;&#160;</a></span>isUseRibbonFrame()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonBar::isUseRibbonFrame </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断当前是否使用的是无边框，而不是native边框 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="aab3bcd17e29aaa1d92f2e231d5f8d187" name="aab3bcd17e29aaa1d92f2e231d5f8d187"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab3bcd17e29aaa1d92f2e231d5f8d187">&#9670;&#160;</a></span>iterateCategory()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonBar::iterateCategory </td>
          <td>(</td>
          <td class="paramtype">FpCategoryIterate</td>          <td class="paramname"><span class="paramname"><em>fp</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>此函数会遍历SARibbonBar下的所有Category，执行函数指针bool(SARibbonCategory*) </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">fp</td><td>函数指针返回false则停止迭代 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回false代表没有迭代完所有的category，中途接收到回调函数的false返回而中断迭代 </dd></dl>

</div>
</div>
<a id="a9b38b8ad37b67cf0d9febebaea643935" name="a9b38b8ad37b67cf0d9febebaea643935"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b38b8ad37b67cf0d9febebaea643935">&#9670;&#160;</a></span>iteratePannel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonBar::iteratePannel </td>
          <td>(</td>
          <td class="paramtype">FpPannelIterate</td>          <td class="paramname"><span class="paramname"><em>fp</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>此函数会遍历SARibbonBar下的所有Category,并迭代所有的pannel，执行函数指针bool(SARibbonPannel*) </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">fp</td><td>函数指针返回false则停止迭代 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回false代表没有迭代完所有的category，中途接收到回调函数的false返回而中断迭代 </dd></dl>

</div>
</div>
<a id="a13a4fd4da7e4cb6d7e69dedcf6e951d2" name="a13a4fd4da7e4cb6d7e69dedcf6e951d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a13a4fd4da7e4cb6d7e69dedcf6e951d2">&#9670;&#160;</a></span>minimumModeAction()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QAction * SARibbonBar::minimumModeAction </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>隐藏ribbon对应的action </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a537177c0c59eafe43cfa65ca984bf9f7" name="a537177c0c59eafe43cfa65ca984bf9f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a537177c0c59eafe43cfa65ca984bf9f7">&#9670;&#160;</a></span>minimumModeMainBarHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonBar::minimumModeMainBarHeight </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>最小模式下的高度 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="ac5673be309d7d58fc63e9c7ec53fc190" name="ac5673be309d7d58fc63e9c7ec53fc190"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac5673be309d7d58fc63e9c7ec53fc190">&#9670;&#160;</a></span>moveCategory()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::moveCategory </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>from</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>to</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>移动一个Category从from index到to index </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">from</td><td></td></tr>
    <tr><td class="paramname">to</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a7399439e99c341cb5de4ecbe47310f40" name="a7399439e99c341cb5de4ecbe47310f40"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7399439e99c341cb5de4ecbe47310f40">&#9670;&#160;</a></span>moveEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::moveEvent </td>
          <td>(</td>
          <td class="paramtype">QMoveEvent *</td>          <td class="paramname"><span class="paramname"><em>e</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>重写moveevent是为了在移动时调整isPopupMode状态下的stackedContainerWidget位置 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">event</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5fc4a92322e212ef23676b0aa3925f0c" name="a5fc4a92322e212ef23676b0aa3925f0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5fc4a92322e212ef23676b0aa3925f0c">&#9670;&#160;</a></span>normalModeMainBarHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonBar::normalModeMainBarHeight </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>正常模式下的高度 </p>
<p>有可能SARibbonBar::height和mainBarHeight不相等，这种情况发生在RibbonState::MinimumRibbonMode状态下 </p><dl class="section return"><dt>返回</dt><dd>高度 </dd></dl>

</div>
</div>
<a id="a882bfbb79ad76cfcaf48819879198452" name="a882bfbb79ad76cfcaf48819879198452"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a882bfbb79ad76cfcaf48819879198452">&#9670;&#160;</a></span>onCategoryWindowTitleChanged</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::onCategoryWindowTitleChanged </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>title</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>category的名字发生改变触发 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">title</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="abf050e323b49950d89cc08e540ea2c06" name="abf050e323b49950d89cc08e540ea2c06"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf050e323b49950d89cc08e540ea2c06">&#9670;&#160;</a></span>onContextsCategoryCategoryNameChanged</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::onContextsCategoryCategoryNameChanged </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *</td>          <td class="paramname"><span class="paramname"><em>category</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>title</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>上下文标签管理的标签的名字发生变换 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">category</td><td></td></tr>
    <tr><td class="paramname">title</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aaf254fc1299e3458a4904478737adaf4" name="aaf254fc1299e3458a4904478737adaf4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf254fc1299e3458a4904478737adaf4">&#9670;&#160;</a></span>onCurrentRibbonTabChanged</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::onCurrentRibbonTabChanged </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>index</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>标签切换触发槽函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a9477953912ddd47fd36b2140a936b2fd" name="a9477953912ddd47fd36b2140a936b2fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9477953912ddd47fd36b2140a936b2fd">&#9670;&#160;</a></span>onCurrentRibbonTabClicked</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::onCurrentRibbonTabClicked </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>index</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>ribbon tab bar单击 </p>
<p>此实现必须在eventfilter中传递stackedwidget的QEvent::MouseButtonDblClick事件到tabbar中，否则会导致双击变两次单击</p>
<p>单击事件仅用于响应点击同一个tab时 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a8f33ace708f5b433585295ab0d524f1e" name="a8f33ace708f5b433585295ab0d524f1e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f33ace708f5b433585295ab0d524f1e">&#9670;&#160;</a></span>onCurrentRibbonTabDoubleClicked</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::onCurrentRibbonTabDoubleClicked </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>index</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>ribbon tab bar双击 </p>
<p>默认情况下双击会切换最小和正常模式 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a2d85f521484c2a34a507e561e2f85602" name="a2d85f521484c2a34a507e561e2f85602"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2d85f521484c2a34a507e561e2f85602">&#9670;&#160;</a></span>onTabMoved</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::onTabMoved </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>from</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>to</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>标签移动的信号 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">from</td><td></td></tr>
    <tr><td class="paramname">to</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ab4183051c49c3f79bb352a575e76636c" name="ab4183051c49c3f79bb352a575e76636c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab4183051c49c3f79bb352a575e76636c">&#9670;&#160;</a></span>paintContextCategoryTab()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::paintContextCategoryTab </td>
          <td>(</td>
          <td class="paramtype">QPainter &amp;</td>          <td class="paramname"><span class="paramname"><em>painter</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>title</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QRect &amp;</td>          <td class="paramname"><span class="paramname"><em>contextRect</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QColor &amp;</td>          <td class="paramname"><span class="paramname"><em>color</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>绘制上下文标签的背景 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">painter</td><td>绘图QPainter </td></tr>
    <tr><td class="paramname">title</td><td>上下文标签的title </td></tr>
    <tr><td class="paramname">contextRect</td><td>上下文标签的绘制区域 </td></tr>
    <tr><td class="paramname">color</td><td>上下文标签赋予的颜色 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a446c7e91ea590753df843bb6aa9f47ac" name="a446c7e91ea590753df843bb6aa9f47ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a446c7e91ea590753df843bb6aa9f47ac">&#9670;&#160;</a></span>paintTabbarBaseLine()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::paintTabbarBaseLine </td>
          <td>(</td>
          <td class="paramtype">QPainter &amp;</td>          <td class="paramname"><span class="paramname"><em>painter</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>绘制tabbar下的基准线，这个方法仅仅在office2013模式下需要 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">painter</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a26269befab74e2b2630f6787146ef4d9" name="a26269befab74e2b2630f6787146ef4d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26269befab74e2b2630f6787146ef4d9">&#9670;&#160;</a></span>paintWindowTitle()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::paintWindowTitle </td>
          <td>(</td>
          <td class="paramtype">QPainter &amp;</td>          <td class="paramname"><span class="paramname"><em>painter</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>title</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QRect &amp;</td>          <td class="paramname"><span class="paramname"><em>titleRegion</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>绘制标题栏 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">painter</td><td></td></tr>
    <tr><td class="paramname">title</td><td>标题 </td></tr>
    <tr><td class="paramname">contextCategoryRegion</td><td>当前显示的上下文标签的范围，上下文标签是可以遮挡标题栏的，因此需要知道上下文标签的范围 x表示左边界，y表示右边界 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ad0e6669eed7d4c8f4b5f9597680e7496" name="ad0e6669eed7d4c8f4b5f9597680e7496"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0e6669eed7d4c8f4b5f9597680e7496">&#9670;&#160;</a></span>pannelLayoutMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_pannel.html#a9da35ca039ab4045209d5614e4566219">SARibbonPannel::PannelLayoutMode</a> SARibbonBar::pannelLayoutMode </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SARibbonPannel的布局模式 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a6b738f6c7f04ec232650ac29c779e555" name="a6b738f6c7f04ec232650ac29c779e555"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6b738f6c7f04ec232650ac29c779e555">&#9670;&#160;</a></span>pannelSpacing()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonBar::pannelSpacing </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>pannel的spacing </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a2d9e057601348de810cf9ce4439b9641" name="a2d9e057601348de810cf9ce4439b9641"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2d9e057601348de810cf9ce4439b9641">&#9670;&#160;</a></span>pannelTitleHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonBar::pannelTitleHeight </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>pannel标题栏的高度 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="aceb7bc8a2bb58abe564a9eccf9e6e9a1" name="aceb7bc8a2bb58abe564a9eccf9e6e9a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aceb7bc8a2bb58abe564a9eccf9e6e9a1">&#9670;&#160;</a></span>pannelToolButtonIconSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QSize SARibbonBar::pannelToolButtonIconSize </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>pannel按钮的icon尺寸，large action不受此尺寸影响 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a49694b13270f73e48a336309b2ac1da7" name="a49694b13270f73e48a336309b2ac1da7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a49694b13270f73e48a336309b2ac1da7">&#9670;&#160;</a></span>raiseCategory()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::raiseCategory </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *</td>          <td class="paramname"><span class="paramname"><em>category</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>确保标签显示出来，tab并切换到对应页 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">category</td><td>标签指针 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a9680c280a9d1dc8cd5b82571c61fd6a5" name="a9680c280a9d1dc8cd5b82571c61fd6a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9680c280a9d1dc8cd5b82571c61fd6a5">&#9670;&#160;</a></span>removeCategory()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::removeCategory </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *</td>          <td class="paramname"><span class="paramname"><em>category</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>移除SARibbonCategory </p>
<p>SARibbonBar不会delete SARibbonCategory*，但这个SARibbonCategory会脱离SARibbonBar的管理 表现在tabbar会移除，面板会移除，使用此函数后可以对SARibbonCategory进行delete </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">category</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a37282adaada2ff1ca6a8ef0ba7e9efe8" name="a37282adaada2ff1ca6a8ef0ba7e9efe8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a37282adaada2ff1ca6a8ef0ba7e9efe8">&#9670;&#160;</a></span>ribbonAlignment()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SARibbonAlignment SARibbonBar::ribbonAlignment </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ribbon的对齐方式 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a52aa893b23e58177a5837d100c82d8b2" name="a52aa893b23e58177a5837d100c82d8b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a52aa893b23e58177a5837d100c82d8b2">&#9670;&#160;</a></span>ribbonModeChanged</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::ribbonModeChanged </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="#a00f6355e3175ff1eb2d06b607c600488">SARibbonBar::RibbonMode</a></td>          <td class="paramname"><span class="paramname"><em>nowState</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>ribbon的状态发生了变化后触发此信号 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nowState</td><td>变更之后的ribbon状态 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a41519b6f92b8d0844f55411f11c11203" name="a41519b6f92b8d0844f55411f11c11203"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41519b6f92b8d0844f55411f11c11203">&#9670;&#160;</a></span>ribbonStackedWidget()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_stacked_widget.html">SARibbonStackedWidget</a> * SARibbonBar::ribbonStackedWidget </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ribbonbar内部的StackedWidget 所有的category都放置在StackedWidget中 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a466b9bf5d89406b0170a62763d585e22" name="a466b9bf5d89406b0170a62763d585e22"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a466b9bf5d89406b0170a62763d585e22">&#9670;&#160;</a></span>ribbonStyleChanged</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::ribbonStyleChanged </td>
          <td>(</td>
          <td class="paramtype">SARibbonBar::RibbonStyles</td>          <td class="paramname"><span class="paramname"><em>nowStyle</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>ribbon的状态发生了变化后触发此信号 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nowStyle</td><td>变更之后的ribbon样式 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a3242c69600f9e91a8ef5e942a3f57a6a" name="a3242c69600f9e91a8ef5e942a3f57a6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3242c69600f9e91a8ef5e942a3f57a6a">&#9670;&#160;</a></span>ribbonTabBar()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_tab_bar.html">SARibbonTabBar</a> * SARibbonBar::ribbonTabBar </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回tabbar </p>
<dl class="section return"><dt>返回</dt><dd>SARibbonTabBar指针 </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_s_a_ribbon_tab_bar.html" title="The SARibbonTabBar class">SARibbonTabBar</a> </dd></dl>

</div>
</div>
<a id="ac0260b06ce426ed7b006f9f572901688" name="ac0260b06ce426ed7b006f9f572901688"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac0260b06ce426ed7b006f9f572901688">&#9670;&#160;</a></span>rightButtonGroup()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_button_group_widget.html">SARibbonButtonGroupWidget</a> * SARibbonBar::rightButtonGroup </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回右边的按钮群指针 </p>
<dl class="section return"><dt>返回</dt><dd>如果没有创建，返回nullptr </dd></dl>

</div>
</div>
<a id="a10627559db4101fccaa3ed3ce10cc042" name="a10627559db4101fccaa3ed3ce10cc042"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10627559db4101fccaa3ed3ce10cc042">&#9670;&#160;</a></span>setApplicationButton()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setApplicationButton </td>
          <td>(</td>
          <td class="paramtype">QAbstractButton *</td>          <td class="paramname"><span class="paramname"><em>btn</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置applicationButton,如果想隐藏，可以传入nullptr </p>
<p>默认会有一个SARibbonApplicationButton，如果想取消，可传入nullptr，或者自定义的button也可以传入</p>
<dl class="section note"><dt>注解</dt><dd>applicationButton的所有权归SARibbonBar所有，不要在外部对applicationButton进行delete操作 </dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">btn</td><td>applicationButton指针，可以传入SARibbonApplicationButton， SA已经对SARibbonApplicationButton进行了样式设置 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a0f03f6728f61bd557613fff3593333d8" name="a0f03f6728f61bd557613fff3593333d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f03f6728f61bd557613fff3593333d8">&#9670;&#160;</a></span>setButtonTextEllipsisAspectFactor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setButtonTextEllipsisAspectFactor </td>
          <td>(</td>
          <td class="paramtype">qreal</td>          <td class="paramname"><span class="paramname"><em>fac</em><span class="paramdefsep"> = </span><span class="paramdefval">1.4</span></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>文本宽度估算时的宽度比高度系数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">fac</td><td>系数，默认为1.4，此系数越大，按钮允许的宽度越宽</td></tr>
  </table>
  </dd>
</dl>
<p>超过此系数的宽度时，开始尝试换行，例如按钮高度为h，如果单行文本的宽度大于h*系数，则按钮将不进行横向拉伸，类似于maxwidth效果</p>
<p>此系数和maxwidth取最小值 </p>

</div>
</div>
<a id="acba7a11ea512c8b00ece9c996273016c" name="acba7a11ea512c8b00ece9c996273016c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acba7a11ea512c8b00ece9c996273016c">&#9670;&#160;</a></span>setCategoryHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setCategoryHeight </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>h</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>resizeByNow</em><span class="paramdefsep"> = </span><span class="paramdefval">true</span></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置category的高度 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">h</td><td></td></tr>
    <tr><td class="paramname">resizeByNow</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a83a70e2a6f0bdd81370b2aa761888deb" name="a83a70e2a6f0bdd81370b2aa761888deb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83a70e2a6f0bdd81370b2aa761888deb">&#9670;&#160;</a></span>setContextCategoryColorHighLight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setContextCategoryColorHighLight </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="#a5a2b3d64effa794ce6c76ccd9dce448a">FpContextCategoryHighlight</a></td>          <td class="paramname"><span class="paramname"><em>fp</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置一个函数指针，函数指针输入上下文标签设定的颜色，输出一个高亮颜色，高亮颜色用于绘制上下文标签的高亮部位，例如最顶部的横线 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">fp</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa503b9cbf19f6673192c943539a5509f" name="aa503b9cbf19f6673192c943539a5509f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa503b9cbf19f6673192c943539a5509f">&#9670;&#160;</a></span>setContextCategoryColorList()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setContextCategoryColorList </td>
          <td>(</td>
          <td class="paramtype">const QList&lt; QColor &gt; &amp;</td>          <td class="paramname"><span class="paramname"><em>cls</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置上下文标签的颜色列表 </p>
<p>上下文标签显示的时候，会从颜色列表中取颜色进行标签的渲染 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">cls</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a2374a24595e2f193d46df986197d7847" name="a2374a24595e2f193d46df986197d7847"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2374a24595e2f193d46df986197d7847">&#9670;&#160;</a></span>setContextCategoryTitleTextColor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setContextCategoryTitleTextColor </td>
          <td>(</td>
          <td class="paramtype">const QColor &amp;</td>          <td class="paramname"><span class="paramname"><em>clr</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置contextCategory 标题的颜色 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">clr</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a59f12ba15866a6c1ef1f09d84bf28509" name="a59f12ba15866a6c1ef1f09d84bf28509"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a59f12ba15866a6c1ef1f09d84bf28509">&#9670;&#160;</a></span>setContextCategoryVisible()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setContextCategoryVisible </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_context_category.html">SARibbonContextCategory</a> *</td>          <td class="paramname"><span class="paramname"><em>context</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>visible</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置上下文标签的显示状态 </p>
<p>上下文标签的当前显示状态可通过 <a class="el" href="#ae3a45e8bbd414d654229e6363f160ec0">isContextCategoryVisible</a> 进行判断 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>上下文标签 </td></tr>
    <tr><td class="paramname">visible</td><td>显示状态，true为显示 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a3bc119ce5cc978669d497cda3785407b" name="a3bc119ce5cc978669d497cda3785407b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3bc119ce5cc978669d497cda3785407b">&#9670;&#160;</a></span>setCornerWidgetVisible()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setCornerWidgetVisible </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>on</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Qt::Corner</td>          <td class="paramname"><span class="paramname"><em>c</em><span class="paramdefsep"> = </span><span class="paramdefval">Qt::TopLeftCorner</span></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置边角widget可见性，对于mdi窗口，会出现TopLeftCorner和TopRightCorner两个corner widget </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">on</td><td></td></tr>
    <tr><td class="paramname">c</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a351ed0b6416dabb3f074d00005ff972b" name="a351ed0b6416dabb3f074d00005ff972b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a351ed0b6416dabb3f074d00005ff972b">&#9670;&#160;</a></span>setCurrentIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setCurrentIndex </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>index</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>切换到对应标签 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>标签索引 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac3e5c4fe36bd532cc800cd1fee2a3795" name="ac3e5c4fe36bd532cc800cd1fee2a3795"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3e5c4fe36bd532cc800cd1fee2a3795">&#9670;&#160;</a></span>setEnableShowPannelTitle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setEnableShowPannelTitle </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>on</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置显示pannel标题 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">on</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a9e8173f470ba8b88ba0b20cf1bf65d54" name="a9e8173f470ba8b88ba0b20cf1bf65d54"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e8173f470ba8b88ba0b20cf1bf65d54">&#9670;&#160;</a></span>setEnableWordWrap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setEnableWordWrap </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>on</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置ribbonbar的按钮文字允许换行 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">on</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a55bfe30c1d9677d6d22195a2972ae1d1" name="a55bfe30c1d9677d6d22195a2972ae1d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a55bfe30c1d9677d6d22195a2972ae1d1">&#9670;&#160;</a></span>setMainWindowStyles()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setMainWindowStyles </td>
          <td>(</td>
          <td class="paramtype">SARibbonMainWindowStyles</td>          <td class="paramname"><span class="paramname"><em>s</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>更新标题栏的区域位置 </p>
<p><a class="el" href="#a55bfe30c1d9677d6d22195a2972ae1d1" title="更新标题栏的区域位置">SARibbonBar::setMainWindowStyles</a> </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a420d990077e59300a5e3fb84faed146e" name="a420d990077e59300a5e3fb84faed146e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a420d990077e59300a5e3fb84faed146e">&#9670;&#160;</a></span>setMinimumMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setMinimumMode </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>isMinimum</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置为最小/正常模式 </p>
<p>隐藏模式下，只会显示tabbar，不会显示内容，默认状态是显示模式</p>
<p>默认下双击tabbar会切换隐藏显示模式，如果想禁用此功能，可以重载 <a class="el" href="#a8f33ace708f5b433585295ab0d524f1e">onCurrentRibbonTabDoubleClicked</a> 函数，不对函数进行任何处理即可</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">isMinimum</td><td>参数为true时，切换为Minimum模式 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>参见</dt><dd>此函数会改变RibbonState 状态，通过<a class="el" href="#a7a9a072cc7f9c20cae6372fbc34747c5">currentRibbonState</a> 函数可以查看当前状态 </dd></dl>

</div>
</div>
<a id="a97b760ebc940e30dbf4aad36c579db57" name="a97b760ebc940e30dbf4aad36c579db57"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97b760ebc940e30dbf4aad36c579db57">&#9670;&#160;</a></span>setPannelLayoutMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setPannelLayoutMode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_pannel.html#a9da35ca039ab4045209d5614e4566219">SARibbonPannel::PannelLayoutMode</a></td>          <td class="paramname"><span class="paramname"><em>m</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SARibbonPannel的布局模式设置 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ad41375cc92b0cbda7030174156c870e3" name="ad41375cc92b0cbda7030174156c870e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad41375cc92b0cbda7030174156c870e3">&#9670;&#160;</a></span>setPannelSpacing()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setPannelSpacing </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>n</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置pannel的spacing </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">n</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a9ad24d5ae10d03680670d431b2d1c115" name="a9ad24d5ae10d03680670d431b2d1c115"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ad24d5ae10d03680670d431b2d1c115">&#9670;&#160;</a></span>setPannelTitleHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setPannelTitleHeight </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>h</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置pannel的高度 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">h</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5b21025cd623c753d41998f61310b34d" name="a5b21025cd623c753d41998f61310b34d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b21025cd623c753d41998f61310b34d">&#9670;&#160;</a></span>setPannelToolButtonIconSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setPannelToolButtonIconSize </td>
          <td>(</td>
          <td class="paramtype">const QSize &amp;</td>          <td class="paramname"><span class="paramname"><em>s</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置pannel按钮的icon尺寸，large action不受此尺寸影响 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a2319dede5155863bb2f89cdfc12c2249" name="a2319dede5155863bb2f89cdfc12c2249"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2319dede5155863bb2f89cdfc12c2249">&#9670;&#160;</a></span>setRibbonAlignment()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setRibbonAlignment </td>
          <td>(</td>
          <td class="paramtype">SARibbonAlignment</td>          <td class="paramname"><span class="paramname"><em>al</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置ribbon的对齐方式 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">al</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a7ee2ffcde55433d35705980030b0a38d" name="a7ee2ffcde55433d35705980030b0a38d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7ee2ffcde55433d35705980030b0a38d">&#9670;&#160;</a></span>setRibbonStyle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setRibbonStyle </td>
          <td>(</td>
          <td class="paramtype">RibbonStyles</td>          <td class="paramname"><span class="paramname"><em>v</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置ribbonbar的风格，此函数会重新设置所有元素，包括button的布局方式， 尤其是从三行变到两行的过程，重设的内容较多 </p>
<dl class="section note"><dt>注解</dt><dd>此函数会自动触发ResizeEvent，不需要手动调用 </dd>
<dd>
默认情况下2行模式不换行,如果想在两行模式换行，在调用SARibbonBar::setRibbonStyle后，再SARibbonToolButton::setEnableWordWrap(true) ,同时再调用updateRibbonElementGeometry()刷新布局 </dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">v</td><td>样式，见SARibbonBar::RibbonStyle </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ad6c3c9088c47582e7dae9ab0c6baab6f" name="ad6c3c9088c47582e7dae9ab0c6baab6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad6c3c9088c47582e7dae9ab0c6baab6f">&#9670;&#160;</a></span>setSystemButtonGroupSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setSystemButtonGroupSize </td>
          <td>(</td>
          <td class="paramtype">const QSize &amp;</td>          <td class="paramname"><span class="paramname"><em>s</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>告知WindowButtonGroup的尺寸 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a15cc7f035e2a12a2e56265c4d05933a0" name="a15cc7f035e2a12a2e56265c4d05933a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15cc7f035e2a12a2e56265c4d05933a0">&#9670;&#160;</a></span>setTabBarBaseLineColor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setTabBarBaseLineColor </td>
          <td>(</td>
          <td class="paramtype">const QColor &amp;</td>          <td class="paramname"><span class="paramname"><em>clr</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>tabbar 底部会绘制一条线条，此接口定义线条颜色 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">clr</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="acfec4465b7b156c964699f8b6eb4753f" name="acfec4465b7b156c964699f8b6eb4753f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acfec4465b7b156c964699f8b6eb4753f">&#9670;&#160;</a></span>setTabBarHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setTabBarHeight </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>h</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>resizeByNow</em><span class="paramdefsep"> = </span><span class="paramdefval">true</span></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置tabbar的高度 </p>
<p>用户调用setTabBarHeight后，将使用用户设定的高度，而不使用自动计算的高度，这时tabbar高度不会跟随字体等信息重新计算</p>
<dl class="section note"><dt>注解</dt><dd>注意，在RibbonStyleCompact**模式下，tabbar高度要保证小于等于titlebar高度，否则会显示异常 </dd>
<dd>
此函数不会自动刷新，如果需要刷新调用此函数后需要调用<a class="el" href="#aa630b6b418d2fa55533aa3a4cb700df2">updateRibbonGeometry</a> </dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">h</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a44480f8ba41f3c9deb0e2c4188aba822" name="a44480f8ba41f3c9deb0e2c4188aba822"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a44480f8ba41f3c9deb0e2c4188aba822">&#9670;&#160;</a></span>setTabDoubleClickToMinimumMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setTabDoubleClickToMinimumMode </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>on</em><span class="paramdefsep"> = </span><span class="paramdefval">true</span></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置是否允许tab双击后，ribbon进入最小化模式，此属性默认开启 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">on</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5a07ec5895a7207530beb47dcb129b34" name="a5a07ec5895a7207530beb47dcb129b34"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a07ec5895a7207530beb47dcb129b34">&#9670;&#160;</a></span>setTabOnTitle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setTabOnTitle </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>on</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置tab在title上面，这样可以省略title区域 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">on</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af49e29e2122d4b003098a4c0bf6e00af" name="af49e29e2122d4b003098a4c0bf6e00af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af49e29e2122d4b003098a4c0bf6e00af">&#9670;&#160;</a></span>setTitleBarHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setTitleBarHeight </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>h</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>resizeByNow</em><span class="paramdefsep"> = </span><span class="paramdefval">true</span></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置标题栏的高度 </p>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="#a16731d0ea5087c91bb0cdfc4818a29f2" title="返回标题栏高度">titleBarHeight</a> </dd></dl>
<dl class="section note"><dt>注解</dt><dd>此操作会发射<a class="el" href="#a6297323791a6a667aaaf22429ad05021">titleBarHeightChanged</a> 信号 </dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">h</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a7a1347a9cf512452789df90e0dc636f5" name="a7a1347a9cf512452789df90e0dc636f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7a1347a9cf512452789df90e0dc636f5">&#9670;&#160;</a></span>setTitleVisible()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setTitleVisible </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>on</em><span class="paramdefsep"> = </span><span class="paramdefval">false</span></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置是否显示标题 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">on</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a03e2c9031839b8310ddc206ded48e381" name="a03e2c9031839b8310ddc206ded48e381"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03e2c9031839b8310ddc206ded48e381">&#9670;&#160;</a></span>setWindowTitleAligment()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setWindowTitleAligment </td>
          <td>(</td>
          <td class="paramtype">Qt::Alignment</td>          <td class="paramname"><span class="paramname"><em>al</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置标题的对齐方式 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">al</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a69f583da37f09ae7368bf7fa6e42ff67" name="a69f583da37f09ae7368bf7fa6e42ff67"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69f583da37f09ae7368bf7fa6e42ff67">&#9670;&#160;</a></span>setWindowTitleBackgroundBrush()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setWindowTitleBackgroundBrush </td>
          <td>(</td>
          <td class="paramtype">const QBrush &amp;</td>          <td class="paramname"><span class="paramname"><em>bk</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置标题栏的背景颜色 </p>
<p>如果不需要颜色，设置Qt::NoBrush </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">bk</td><td>背景颜色 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aff6a358630d75bddfea9780fa4b99c69" name="aff6a358630d75bddfea9780fa4b99c69"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff6a358630d75bddfea9780fa4b99c69">&#9670;&#160;</a></span>setWindowTitleTextColor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::setWindowTitleTextColor </td>
          <td>(</td>
          <td class="paramtype">const QColor &amp;</td>          <td class="paramname"><span class="paramname"><em>clr</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置标题的文字颜色 </p>
<p>标题是mainwindow的windowTitle，如果要设置标题，直接调用SARibbonMainWindow::setWindowTitle 进行设置</p>
<p>如果不设置标题颜色，默认是SARibbonBar的qss的color属性 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">clr</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>此函数不会刷新，刷新请自行调用repaint </dd></dl>

</div>
</div>
<a id="a10ce5d529934fa86686384541a53e6a2" name="a10ce5d529934fa86686384541a53e6a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10ce5d529934fa86686384541a53e6a2">&#9670;&#160;</a></span>showCategory()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::showCategory </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *</td>          <td class="paramname"><span class="paramname"><em>category</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>显示被隐藏的category </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">category</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a6d740994d5ca270b0ffa5f3930a3bcc0" name="a6d740994d5ca270b0ffa5f3930a3bcc0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d740994d5ca270b0ffa5f3930a3bcc0">&#9670;&#160;</a></span>showContextCategory()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::showContextCategory </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_context_category.html">SARibbonContextCategory</a> *</td>          <td class="paramname"><span class="paramname"><em>context</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>显示上下文标签 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>上下文标签指针 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ab390ef8b23d825b6667bce5a9e481696" name="ab390ef8b23d825b6667bce5a9e481696"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab390ef8b23d825b6667bce5a9e481696">&#9670;&#160;</a></span>tabBarBaseLineColor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QColor SARibbonBar::tabBarBaseLineColor </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取tabbar底部基线颜色 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a49d40554f4b24aa32012634b5c2ff34f" name="a49d40554f4b24aa32012634b5c2ff34f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a49d40554f4b24aa32012634b5c2ff34f">&#9670;&#160;</a></span>tabBarHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonBar::tabBarHeight </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>tabBar的高度 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a16731d0ea5087c91bb0cdfc4818a29f2" name="a16731d0ea5087c91bb0cdfc4818a29f2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a16731d0ea5087c91bb0cdfc4818a29f2">&#9670;&#160;</a></span>titleBarHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonBar::titleBarHeight </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回标题栏高度 </p>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="#af49e29e2122d4b003098a4c0bf6e00af" title="设置标题栏的高度">setTitleBarHeight</a> </dd></dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a6297323791a6a667aaaf22429ad05021" name="a6297323791a6a667aaaf22429ad05021"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6297323791a6a667aaaf22429ad05021">&#9670;&#160;</a></span>titleBarHeightChanged</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::titleBarHeightChanged </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>oldHeight</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>newHeight</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>标题栏高度发生了变化的信号 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">oldHeight</td><td></td></tr>
    <tr><td class="paramname">newHeight</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a3d02fab4dc25644d7a3d95baab00e98b" name="a3d02fab4dc25644d7a3d95baab00e98b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d02fab4dc25644d7a3d95baab00e98b">&#9670;&#160;</a></span>updateCategoryTitleToTabName()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::updateCategoryTitleToTabName </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>更新所有的category title对应的tab名 </p>
<p>此函数会对所有的category的名字和tab进行匹配，如果匹配不上会重新设置tab名 </p>

</div>
</div>
<a id="aa630b6b418d2fa55533aa3a4cb700df2" name="aa630b6b418d2fa55533aa3a4cb700df2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa630b6b418d2fa55533aa3a4cb700df2">&#9670;&#160;</a></span>updateRibbonGeometry()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonBar::updateRibbonGeometry </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>更新ribbon的布局数据，此函数适用于一些关键性尺寸变化，换起ribbon下面元素的布局 </p>
<dl class="section note"><dt>注解</dt><dd>此函数调用较慢，避免在高速要求场合调用 </dd></dl>

</div>
</div>
<a id="a5c9da4e82f93542ebce57d10a96b4202" name="a5c9da4e82f93542ebce57d10a96b4202"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c9da4e82f93542ebce57d10a96b4202">&#9670;&#160;</a></span>versionString()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QString SARibbonBar::versionString </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取版本信息 </p>
<dl class="section return"><dt>返回</dt><dd>{SA_RIBBON_BAR_VERSION_MAJ}.{SA_RIBBON_BAR_VERSION_MIN}.{SA_RIBBON_BAR_VERSION_PAT} </dd></dl>

</div>
</div>
<a id="a56df3f474fd594cd61f0805cceae89eb" name="a56df3f474fd594cd61f0805cceae89eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a56df3f474fd594cd61f0805cceae89eb">&#9670;&#160;</a></span>windowTitleAligment()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Qt::Alignment SARibbonBar::windowTitleAligment </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取标题的对齐方式 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a5fe924744f7d21c6aaadc45e8171035a" name="a5fe924744f7d21c6aaadc45e8171035a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5fe924744f7d21c6aaadc45e8171035a">&#9670;&#160;</a></span>windowTitleBackgroundBrush()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QBrush SARibbonBar::windowTitleBackgroundBrush </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>标题栏的背景颜色 </p>
<p>颜色为Qt::NoBrush时，代表没有背景颜色 @default Qt::NoBrush </p><dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a402e474bf5dbf124d9c02002aaedf4e0" name="a402e474bf5dbf124d9c02002aaedf4e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a402e474bf5dbf124d9c02002aaedf4e0">&#9670;&#160;</a></span>windowTitleTextColor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QColor SARibbonBar::windowTitleTextColor </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取标题的文字颜色 </p>
<dl class="section return"><dt>返回</dt><dd>如果返回的是无效颜色，!QColor::isValid()，说明没有手动设置颜色，颜色将跟随SARibbonBar的qss的文字颜色 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<a class="el" href="_s_a_ribbon_bar_8h_source.html">SARibbonBar.h</a></li>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<b>SARibbonBar.cpp</b></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_s_a_ribbon_bar.html">SARibbonBar</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
